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

Propagate error payload to catching execution

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.3.0, 7.3.0-alpha3
    • None
    • engine

      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.

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: