Microflow commit

1
Hi team, In mendix any alternate way to execute  commit and any other operation without completion of microflow. As we know every operation reflect only when microflow gets completed.        
asked
2 answers
2

Hi Sharad, 

 

You may opt to call a nanoflow to start your actions. 

Within nanoflow all actions are executed in separated transaction.

That way you can have a nanoflow calling multiples Microflows…

https://docs.mendix.com/refguide/nanoflows/#3-differences-from-microflows

 

Another option is having SUB_Microflows with Errorhandling set to Custom Without-rollback.

https://docs.mendix.com/howto/logic-business-rules/set-up-error-handling/#43-error-handling--custom-without-rollback

 

There is other options like Community Commons or Custom Java Actions 

https://docs.mendix.com/howto/logic-business-rules/java-api-tutorial/#2-executing-microflows-and-committing-objects

https://apidocs.rnd.mendix.com/9/runtime/com/mendix/systemwideinterfaces/core/IContext.html#endTransaction()

 

OJO: Check this thread for more info on Mendix Commit behavior : https://forum.mendix.com/link/questions/117637

 

Best regards

 

answered
2

You can use the 'EndTransaction' activity from the CommunityCommons module. 

  • EndTransaction – This commits the transaction, which will end the transaction or remove a save point from the queue if the transaction is nested.

More info here: https://docs.mendix.com/appstore/modules/community-commons-function-library/

 

Goodluck! 

answered