-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Error catch events without error code (catch-all Error events) #3362
Comments
@koevskinikola Thanks for opening the issue. For clarity could you attach an example process that defines a global error? |
Hey @nikku, of course. Here's a process where the two possible cases of a global error catch event are defined:
Let me know if you need more details, or if there's a better way to attach a BPMN process on GitHub. |
@koevskinikola You can attach by renaming to Thanks for sharing the diagram. It is now clear to me that |
Updated the issue accordingly, please review @koevskinikola. |
Looks good @nikku, thanks! |
Moving to |
@koevskinikola Can you help me understand what is not allowed. I'm not entirely sure about how scopes work. A couple of examples: Example 1Example 2Example 3Example 4 |
Hey @philippfromme, From the examples you provided above:
I can't think of any other use cases, so I think you managed to cover all of them. :) Let me know if I can be of more help. |
@nikku @philippfromme I've been writing the Zeebe docs for this feature, and while going through our test coverage I realized I gave you the wrong answer here:
If we use our BPMN model API to model a catch-all error event, the XML output for a catch-all error event without an <boundaryEvent attachedToRef="task" id="error" name="error">
<errorEventDefinition id="errorEventDefinition_bc91ed16-c948-4fc4-a201-fa7933fcb672"/>
</boundaryEvent> From my understanding, for the Modeler this means that you don't need to make the |
This sounds like the more reasonable thing, if we don't have additional Zeebe specific things maintained on the error in the catch all case. On the other hand, what happens if I deploy an error without an I'm always happy to go for the simpler solution. |
CC @philippfromme. Did you account for #3362 (comment)? |
@philippfromme @nikku if this is fixed upstream, maybe we can pull out the remaining stuff in a separate issue so it is clear this is closed from Modeler side in the Product Hub issue. |
If we want to mirror the Zeebe engine behavior, we have to change the lint rules to always require an error code if an error reference exists but to not require an error reference. So we'd get rid of this error: I'd say let's change it since the whole point of the linter is to ensure engine compatibility including quirks that might exist in the engine. |
@nikku camunda/bpmnlint-plugin-camunda-compat#89 changes the rules to mirror Zeebe engine behavior. Can you have a look? |
Problem you would like to solve
With camunda/camunda#11126, Zeebe now supports Error catch events without an error code.
This enables users to model a specific response for a known escalation code, and a general response for unknown escalation codes.
Currently, Error catch events without error codes are not supported in the Modeler for Camunda 8 BPMN diagrams.
Proposed solution
ErrorEventDefinition#errorRef
is optional(Support Error catch events without error code (catch-all Error events) #3362 (comment))Error#errorCode
is optionalAlternatives considered
/
Additional context
In Zeebe, the feature will be available with version
8.2.0-alpha3
.The text was updated successfully, but these errors were encountered: