cancel
Showing results for 
Search instead for 
Did you mean: 

BpmnError context in ErrorBoundaryEvent

andrej_zirko
Champ in-the-making
Champ in-the-making

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 2

bassam_al-saror
Star Collaborator
Star Collaborator

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?

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