cancel
Showing results for 
Search instead for 
Did you mean: 

transaction in activiti rest operation

jonlee
Champ in-the-making
Champ in-the-making
I invoke activiti service through rest api. there are 2 web applications, A system do some business operation and then remotely invoke B system(B system is the activiti rest server). just like follow:


public void doSomeService(){
  //do update operations
  rest("XXX") // remotely invoke B system, maybe claim or complete a task
  //do delete operations
}


when B system is successful, but A system has a exception, How do I callback B system. Is there any solutions about consistency of remoting invoke transaction
1 REPLY 1

trademak
Star Contributor
Star Contributor
With the REST API it's not easy to work with transactions. If this kind of transaction support is really needed running Activiti embedded could be an option or build a web service layer and use WS-Transaction.

Best regards,