I'm not familiar with the possibility to add a microflow as parameter to another microflow. However I think that extracting the same logic to a sub microflow would help you with your request. More information about extracting and creating a sub microflow can be found here: https://docs.mendix.com/howto/logic-business-rules/extract-and-use-sub-microflows
Hope that helps :-)
Thank you Jeffrey, I'll read it.
You can pass a microflow name as a String and then use the java action executeMicroflow to run it.
This however leaves you open to runtime errors if the microflow name was changed.
An alternative would be to use the ProcessQueue module and send a Process Name as a String and then run it with a java action. This also comes with the benefit that the job will be executed asyncrhonusly.
this definitely helps.