cancel
Showing results for 
Search instead for 
Did you mean: 

Atomic Transactions for the REST

luis_calderon
Champ in-the-making
Champ in-the-making
I'm developing API REST services and am on the road to build some process flows in Activiti invoking REST services for POST, PUT, DELETE, my question is as I can manage commit and rollback transactions to ensure that everything is done or if something goes wrong everything is reversed.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
REST calls are not transactional … Activiti will roll back to the previous stable state when an exception happens … but of course the REST call will already have been fired and can't be rolled back as such. If you need that, you'd need to catch the exception and to the compensating logic yourself.