cancel
Showing results for 
Search instead for 
Did you mean: 

Handling Exceptions

richip
Champ in-the-making
Champ in-the-making
I created a SubProcess containing several ServiceTask tasks and associated an ErrorBoundaryEvent to it. I assumed that the engine would take any Exception thrown in any of the ServiceTasks and fire up the ErrorBoundaryEvent, but that's not happening.

How do I implement the scenario where for a specific sub-process, if a Java Exception occurs inside, it would go to an event then Task that I specify so I can handle it? Likely a user task.
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi richip,

the best example is jUnit test. 🙂
e.g.:
org.activiti.engine.test.bpmn.event.error.ErrorEventSubProcessTest#testCatchErrorInEmbeddedSubProcess
(and many others)

and doc:
http://activiti.org/userguide/index.html#serviceTaskExceptionHandling

Regards
Martin