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

Improve BPMN Parser Exceptions

XMLWordPrintable

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

      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

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: