AnsweredAssumed Answered

Stopping a Process Workflow

Question asked by erwincc on Jan 16, 2013
Latest reply on Mar 4, 2014 by cundurs
I am using Activiti Engine to execute a series of Java processes (including web services) using JavaDelegate instances. However, I have a Use Case where if one of these processes fail - let's say the 3rd of 5 processes, throws a Fatal exception (maybe due to unavailability of data or connectivity issues), I want to cancel or stop the workflow.  I saw a in previous posts that it can be done using BPMN boundary event but this would mean that each of my Service Task would need to be wired to that event. If I have 20 processes I need to do that for each of them.

Is there a way to totally stop/cancel the execution of the workflow within an instance of the JavaDelegate?

Thanks in advance.

Outcomes