cancel
Showing results for 
Search instead for 
Did you mean: 

how to mark the service task is successful or failed

anu9
Champ in-the-making
Champ in-the-making

I am building an app where i am not using activiti for persistance or it UI.

I create a pure java activiti workflow and deploy and run it. The tasks are all implementation of delegate. 

I am transforming the workflow model definition containing sequence flows and tasks and running it via activiti.

If everything goes fine workflow runs fine. But if any task in between fails it still continues to execute the next task.

is there any way in activiti it can be handled or i have to handle all these cases in the delegate implementation itself?

1 REPLY 1

pault
Star Contributor
Star Contributor

Not sure what type of failure you mean, but BPMN does allow the definition of error events to handle business exceptions (rather than java exceptions). Haven't used them myself, but there is more in the user guide section on BPMN constructs Activiti User Guide