cancel
Showing results for 
Search instead for 
Did you mean: 

ErrorBoundaryEvent on Task

tim_vandeplas
Champ in-the-making
Champ in-the-making
Hello,

Is it possible to add an ErrorBoundaryEvent on a simple Task (e.g. a Java Service Task)?
If not are there plans to add it in the near future?

Regards,

Tim
8 REPLIES 8

trademak
Star Contributor
Star Contributor
Hi,

Yes it's possible. But the question would be, what do you want to do with it?
Because the boundary error event will not catch any Java exceptions.

Best regards,

tim_vandeplas
Champ in-the-making
Champ in-the-making
I would like to add some error flows, e.g adding a HumanTask after a communications error.
I know that it won't catch Java Exceptions, but our code could catch the given exception and trigger an error event.

I also had a look at the "Handling exceptions" section of the document, we would basically like to do the same but without extending ActivityBehavior and by using the "ErrorBoundaryEvent" to clearly indicate that it's an error flow.

The problem is that I don't know how to trigger the ErrorBoundaryEvent.

Regards,

Tim

trademak
Star Contributor
Star Contributor
Hi,

Okay. It's not easy to trigger the ErrorBoundaryEvent.
If you want to implement the logic you described I would stick with choosing the sequence flow from the Java code based on the exception being thrown or not.

Best regards,

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
If you want to implement the logic you described I would stick with choosing the sequence flow from the Java code based on the exception being thrown or not.

Thought it works, it more and more starts to feel like a 'hack' since you need to have sequence flow names in sync with the java code… And as another poster reported, choosing an explicit sequence flow from a task is against spec, each flow should be taken (but maybe limited to ones where a condition is met.

And as this topic mentions, an error event is also something very visual, and business level. So I'll see what I can come up with in the comming weeks since this just seems something we want to have.

trademak
Star Contributor
Star Contributor
Hi Ronald,

Sure you're right. If you can come up with something that would be great of course.

Best regards,

tim_vandeplas
Champ in-the-making
Champ in-the-making
That would indeed be great.

Thank you.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Don't get your hopes up to high. I'm way overdue with some other things that I want to pick up now the tennis season is almost over (well, down to 1 time per week)

butl
Champ in-the-making
Champ in-the-making
We are facing the same issue here.

In the meantime, maybe could you tell me where I have to look to implement it on my own.
I would be willing to share my findings with the community.

Thank you very much in advance.

Best regards,
butl