Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10771

Improve BPMN Parser Exceptions

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Fixed
    • L3 - Default
    • 7.12.0, 7.12.0-alpha6
    • None
    • engine
    • None

    Description

      The BPMN parse errors thrown by the engine have limitations that make it hard to comprehend reported problems and/or map problems back to actual BPMN elements:

      I propose the following solution:

      (1) Provide additional `getErrors()` and `getWarnings()` interfaces for the `ParseException`. This allows you to catch the exception from Java Code and see what's up

      try {
        // deploy
      } catch (ParseException ex) {
        ex.getErrors();
        ex.getWarnings();
      }
      

      (2) Expose the errors and warnings via REST API on deployment

      POST /engine-rest/deployment/create
      
      => HTTP 400
      {
        "type" : "ParseException",
        "message" : "existing, unchanged message",
        "errors": [ ... ],
        "warnings": [ ... ]
      }
      

      (3) Ensure that all errors / warnings get logged with the IDs of affected BPMN elements

      Related issue: https://app.camunda.com/jira/browse/CAM-10245

      Existing work on this topic has already been done in this PR: https://github.com/camunda/camunda-bpm-platform/pull/333

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                thorben.lindhauer Thorben Lindhauer
                rehwaldt Nico Rehwaldt
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce