cancel
Showing results for 
Search instead for 
Did you mean: 

Exception handling Issue - Not Working

penusila611621
Champ in-the-making
Champ in-the-making
Dear Team,

I have a simple process with one human activity. Hooked a TaskListener to the human activity(create event) to handle business logic upon creation of task. This Task Listene may throw exceptions & to handle these exceptions, I have attached a boundary error event to the human activity to catch errors.  Not 100% sure how to use boundary error event on human activity.

This error boundary event is not catching exceptions thrown by human activity listener.
Anybody throuw some light how to handle this issue.
2 REPLIES 2

trademak
Star Contributor
Star Contributor
The boundary error event is not meant to handle Java exceptions. It's meant to handle BPMN logical errors.
You can throw a BpmnError exception from a Java service task to do this as well.
This is currently not supported from a listener, but it would make sense to add this. Could you create a JIRA issue for that?

Best regards,

penusila611621
Champ in-the-making
Champ in-the-making
Many thanks Tijs Rademakers for your response on this post. Will create a JIRA for this. Would you please let me know what do you mean by BPMN logical errors, give an example. I am bit new to Activiti & started bulding up BPMN knowledge.