How to implement two-phase commit or transactional activity from microflow?

0
Hi, Developers I need to make the following activities run atomically. 1. To update several Mendix entities 2. To run a couple of external databases with queries or procedure As far as I know, the Mendix entities and the external database query execution run on each separate transaction so that it won't roll back automatically even if an error is raised at a certain point. How can we achieve the result using a transactional component like EJB or JTA? Should I make a java action with the logics to run atomically? I appreciate any idea you provide. Thank you all again.    
asked
1 answers
0

The only way to achieve this is to make all calls to external systems synchroneous and your SQL calls reversible. The Mendix transaction should be done as last and rolledback in case one of the external calls fails.

answered