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

Propagate error payload to catching execution

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3.0, 7.3.0-alpha3
    • Component/s: engine
    • Labels:

      Description

      It is currently not possible to pass additional variables from an error event, such as a detailed error message, etc., to the catching execution.

      This applies to

      • error events
      • code that throws BpmnError, such as delegates, listeners, etc.

      In particular, if you have a catch-all error handler, then it is not possible to find out which error was caught.

      Proposed solution:

      The catching error handler defines the name of a Variable into which the error code of a message can be mapped:

      <boudaryEvent attachedToRef="...">
        <errorEventDefinition errorRef="myError" camunda:errorCodeVariable="someVariableName" />
      </boundaryEvent>
      

      The variable with name "someVariableName" will then contain the error code of the error which was caught.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              smirnov Roman Smirnov
              Reporter:
              thorben.lindhauer Thorben Lindhauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development