cancel
Showing results for 
Search instead for 
Did you mean: 

Error Boundary event issue ?

meditel
Champ in-the-making
Champ in-the-making
Hi,

I see this in the user guide :
If errorRef is omitted, the boundary error event will catch any error event, regardless of the errorCode of the error.

But i don't think this is true !
I have attached a simple test case with 2 processes (one calls the other using a call activity task and catching the errors using a Boundary event).

If you run the test case you will notice that the process is keeping running and never stops !

Do you confirm this behavior ?

BR,
Meditel
8 REPLIES 8

mhw
Champ in-the-making
Champ in-the-making
Hi,

I have tested this, too. Very interesting. In the activiti examples there is a test for a call activiti:
org.activiti.examples.bpmn.callactivity

There a order should be placed and in the subprocess the credit card data are processed. If no approval of credit card data happens, customer is contacted. Ok. But that time the user task is continued, the calling process is continuing and therefore delivery is taking place. In a real world case this needs exactly the error handling you proposed in your example.

I would be very interested in a solution of that, too.

Best Regards,
Michael

meditel
Champ in-the-making
Champ in-the-making
Hi,

Yes it could be very interesting to have one boundary error event that catch several error !
This could be the case by omitting the 'errorRef'. But unfortunately it doesn't work for me 😕 and this might be a bug.

BR,
Meditel

frederikherema1
Star Contributor
Star Contributor
Looks like an issue indeed. When using err3 as errorRef, test runs green.

Created jira for this: http://jira.codehaus.org/browse/ACT-953

meditel
Champ in-the-making
Champ in-the-making
Yes i was about to create one Jira.
Hope this could be resolved in the 5.8

BR,
Meditel

meditel
Champ in-the-making
Champ in-the-making
Hi,

Any idea when this bug could be resolved ?

BR,
Meditel

meditel
Champ in-the-making
Champ in-the-making
Hi,

I have tested with 5.9-SNAPSHOT and see that the test case is successful.
I have one more question regarding the Error Boundary event : how to know witch error code was thrown if multiple error event are handled with only one Error Boundary event ? In an other way : how to print out the code of the catched error in MyProcess2.activiti (Script task : System.out.println("error catched "+????):smileywink: ?

BR,
Meditel

meditel
Champ in-the-making
Champ in-the-making
Any answer for my last question please ?

BR,
Meditel

meditel
Champ in-the-making
Champ in-the-making
Hi,

Any news ??

BR,
Meditel