cancel
Showing results for 
Search instead for 
Did you mean: 

Exception Handling in branches

sunil76
Champ in-the-making
Champ in-the-making
Hi,
     How should one model a business process for the following scenarios:
1) A main process forks two parallel branches, and if any one of the branches throws an exception then the entire process must terminate

2) A main process forks two parallel branches, and if any one of the branches throws an exception the process must NOT terminate/end, but continue executing the other branch



-Thanks
S76.


3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
First off all .. please clarify 'exception'. A java exception? A business exception

1) Add an embedded subprocess which contains all these steps and add a catching boundary event

2) Only add a boundary event to the specific step of that branch.

sunil76
Champ in-the-making
Champ in-the-making
Exception here means - a Java Exception that is thrown from a Service Task

jbarrez
Star Contributor
Star Contributor
Than all you need is written down in the docs: http://activiti.org/userguide/index.html#serviceTaskExceptionHandling