In Flow 1 I have a function which calculates stuff and then returns a msg with some content.
msg.payload = 2;
msg.text = "State 10 reached";
return msg;
In the second flow I have a periodic trigger which checks the state of a variable every minute.
Now I want to trigger this second flow from the function body from flow 1. I tried of course to educate myself but got stuck.
Reason that I want it to trigger instead of polling is that flow 2 should start immediately after in flow 1 that condition is reached.