cancel
Showing results for 
Search instead for 
Did you mean: 

Aborting a workflow and riling back state

krraghavan
Champ in-the-making
Champ in-the-making
I have a requirement to be able to abort a workflow which may be in the middle of a long running task and rollback the state of the system to what it was before the workflow started. I tried looking up in the forums and in the activiti book but couldn't find a satisfactory solution. What would be the best/recommended way to do this. If at all possible I'd prefer not to put an exclusive gateway after each task to keep the diagram clean and uncluttered

Thx
Raghavan
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Raghavan,

It really depends on your understanding of "long" running. In the case when "long" can be covered by DB transaction then
http://activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions .
When long is really long and can not be covered by DB transaction, you have to use compensation (e.g Compensation Boundary Event)

Regards
Martin
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.