How do I call a microflow from a java action activity?

0
My requirement is to call a SSO startup microflow from a java action activity because I want to add a condition for the SSO login mechanism, if that condition will be true then I want that SSO microflow to be executed otherwise it should skip. 
asked
2 answers
1

I wrote an article on this a while ago that may be of help.

https://medium.com/mendix/the-new-way-to-call-mendix-microflows-from-java-actions-46152923dbbc

Essentially, it’s just calling the microflowCall method in the Core.

com.mendix.core.Core.microflowCall("TestCallingJava.SUB_ShowMessageCount")
  .inTransaction(true)
  .withParam("Name", "Donald")
  .withParam("MessageCount", "1234")
  .execute(this.getContext());

Hope this helps.

answered
0

You can use the Core.microflowCall method 

Core.microflowCall("AModule.SomeMicroflow")
   .inTransaction(true)
   .withParam("Param1", "Value1")
   .withParam("Param2", "Value2")
   .execute(context);
 

 

Refer to this documentation for more

answered