Calling nanoflow from Microflow and vice versa - Mendix Forum

Calling nanoflow from Microflow and vice versa

0

Mendix 8 released on 2nd may have javascript action implemented. This action is allowed to be called only from nanoflow and not from microflow. 

In my app, i want to perform some javascript action and read an object from session. There is a button on which I want to call a microflow which require that stored object. But i am unable to do so as Microflow can not call a nanoflow and it also not allowed to call javascript action. 

As a workaround, I created a persistable entity. Nanoflow can now read that session object  and store it in my entity. After clicking on button my microflow could easily read object from entity. Challenge here is how can I make sure that nanoflow will run after starting up my Application. What trigger event should I configure ?

asked
1 answers
1

You can call a microflow from a nanoflow but as far as I know it's not possible to call nanaflows from microflows

example of calling microflow in a nanoflow with a javascript action: 

	// BEGIN USER CODE
	return new Promise(function (resolve, reject) {
		mx.ui.action(microflowname,{
			progress: "modal",
			callback: function(result){
				resolve("");
			}
		});

	});
	// END USER CODE

 

answered