Calling microflow from Java Code that isnt in a Java action

0
Hi all   I want to call a simple microflow that just logs something in the console.   I want to call this microflow from a java method that is not a java action but in a separate class that gets used at a different time.   I tried this code but it didn't work: com.mendix.core.Core.microflowCall("ModuleName.MicroflowName");   How can I execute a microflow from here? I saw that you have to use the .execute(IContext) in the microflowCall method but I don't that IContext in my class.   I'm not sure what I can do to fix this does anyone know what to do?      
asked
1 answers
1

You can usually get the system context using.

Core.createSystemContext()

 

answered