Commit in between MF execution

0
Hello,   Normally database commits happen at the end of the microflow, is there way to commit operation in between the MF execution? I have a long running MF to delete records, but if the process quits/system restarts in between none of the records fond deleted; is there a method to preserve the deletions made so far?   Thanks Iqbal
asked
1 answers
0

The Community Commons module in the Marketplace has EndTransaction and StartTransaction actions. You can use these to make the transaction end earlier and commit to the database, and to also start a fresh transaction in a microflow.

 

https://docs.mendix.com/appstore/modules/community-commons-function-library/#orm

 

Another approach could be to break up your microflow into smaller tasks that run in a task queue. Each task will be in its own transaction when run.

 

https://docs.mendix.com/refguide/task-queue/

 

I hope this helps. Good luck!

answered