cancel
Showing results for 
Search instead for 
Did you mean: 

Can processes be transaction aware?

susubhas
Champ in-the-making
Champ in-the-making
Can processes be transaction aware?. If some task fails then all the previous tasks should roll back. is it possible???
5 REPLIES 5

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise

susubhas
Champ in-the-making
Champ in-the-making
Thanks Ronald for the quick reply, could you please let me know how can i achieve this ???

jbarrez
Star Contributor
Star Contributor
It's pretty core to Activiti: from every waitstate to every next waitstate you have a transaction. If something goes wrong, it roll back to the previous wait state.
If you need to demarcate manually your transactions, look into the 'async continuation' functionality of Activiti.

susubhas
Champ in-the-making
Champ in-the-making
I tried implementing a transactional process, a process which has compensating tasks. But then on the occurence of compensate throw event these compensating tasks are not executed. Did lot of google search, couldn't find any sample process with compensating tasks. I am stuck with this issue Smiley Sad

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
I think there are activiti testcases that test this, maybe try those…