cancel
Showing results for 
Search instead for 
Did you mean: 

New Transaction context on each process instance

suresh13_m
Champ in-the-making
Champ in-the-making
Hi,
   I have created a process which will insert data in multiple tables in the same data base in different tasks in the workflow.But i want to maintain a transaction at the process instance level so that on encountering any error(either checked exception/ run time exceptions) the data inserted in the previous tasks will be rolled back.Is there any to start transaction when a process starts and end/rollback on completion/error.I am using activiti rest services to start the process instances from a different web app.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
As long as you don't have any wait states (like a user task) in your process, all the steps will be part of the same transaction.
So three sequential automatic steps are done in the same transaction.