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

I can define a BPMN Error Throw Event with an error message

    Details

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

      Description

      Scenario

      A user has two different Error End Events, each referencing a different <error /> and a "catch-all" error start event in an event subprocess. Since the start event can catch two different errors, the user wants to reason about which error has been caught by the start event by storing error code and error message as variables. While it is currently possible to specify an error message when throwing an error from delegation code with new BpmnError(code, message) it is not possible to do so when defining the error end event.

      Feature Description

      Given:

      • An error end event which references a BPMN Error definition with camunda:errorMessage defined as in the following example:: <bpmn:error id="Error_1x1ymni" name="INVALID_DATA" errorCode="1231" camunda:errorMessage="The data provided is invalid" />
      • An error start event which uses camunda:errorMessageVariable="foo"

      When

      The end event is executed

      Then

      The start event is triggered and after executing it, the variable foo contains the value "The data provided is invalid".

        Issue Links

          Activity

          Hide
          meyer Daniel Meyer added a comment -

          Nikola Koevski you write that "It is possible to define a BPMN Error Throw Event with an error message in the Modeler." I did not find that feature. Where do you define the error message for a error throw event in the modeler?

          Show
          meyer Daniel Meyer added a comment - Nikola Koevski you write that "It is possible to define a BPMN Error Throw Event with an error message in the Modeler." I did not find that feature. Where do you define the error message for a error throw event in the modeler?
          Hide
          nikola.koevski Nikola Koevski added a comment -

          Daniel Meyer, it's not possible. Sorry, I mixed up the properties panels with the BPMN Error Catch Event. However, the feature request is still valid, since the error message won't be parsed by the engine.

          Show
          nikola.koevski Nikola Koevski added a comment - Daniel Meyer , it's not possible. Sorry, I mixed up the properties panels with the BPMN Error Catch Event. However, the feature request is still valid, since the error message won't be parsed by the engine.
          Hide
          meyer Daniel Meyer added a comment -

          Ok, thanks for getting back to me quickly

          Show
          meyer Daniel Meyer added a comment - Ok, thanks for getting back to me quickly
          Hide
          nikola.koevski Nikola Koevski added a comment -

          Review hints:

          • Provide tests for BPMN Error events without a message defined (old behavior) in the Model API and the engine.
          Show
          nikola.koevski Nikola Koevski added a comment - Review hints: Provide tests for BPMN Error events without a message defined (old behavior) in the Model API and the engine.

            People

            • Assignee:
              nikola.koevski Nikola Koevski
              Reporter:
              nikola.koevski Nikola Koevski
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development