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.