BpmnError context in ErrorBoundaryEvent

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

BpmnError context in ErrorBoundaryEvent

Hello,
We would like to model a generic error handling for BPMN errors. Each of our tasks can throw BPMN error with different error code and error message. Then we would like to have generic boundary error event, which catches all BPMN errors (without filled errorCode).

Our boundary event successfully catches all error code. Unfortunately we haven’t found a way how to access the BPMN error context in error handling.

How can we get the error code and error message that we caught in error handling? We try to avoid having numerous specific boundary error events, so we can keep the error handling generic.

Thank you,
Andrej

2 Replies
Highlighted
Senior Member

Re: BpmnError context in ErrorBoundaryEvent

Where do you want to access the error code & message? Can you describe more or maybe share some code on how do you expect to access error codes and messages?

Highlighted
Senior Member

Re: BpmnError context in ErrorBoundaryEvent

You can also listen to ActivitiErrorEvent events which will provide error codes and message.