cancel
Showing results for 
Search instead for 
Did you mean: 

JavaDelegate and throwing BpmnError

rgareau
Champ in-the-making
Champ in-the-making
Hi,

When I throw a BpmnError("Error1", "Error description") from within a JavaDelegate and catch it using an ErrorBoundaryEvent in the workflow.

Is it possible to access the Error description in a ScriptTask using Groovy?
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
This is currently not possible. The error-code is extracted from this error and relevant catching event is notified, no payload is passed.

rgareau
Champ in-the-making
Champ in-the-making
Does the payload has any uses?

frederikherema1
Star Contributor
Star Contributor
The message passed is only used in case there are no catching error boundry events found, when the exception is thrown… (BpmnError extends ActivitiException).