Flow as a Function with Parameters Passing
Moderator: Martin
Flow as a Function with Parameters Passing
Now, I wrote many flows for doing the same things with different values. I'm using some global variables to change the value of each execution in the flow. But there are some limits, e.g. global variable may be overwrite by different flows. It will be better if Automagic can treat any flows as functions with parameter passing in and out. And it will be better if it can be controlled to be a single instant of calling function, or creating a new instant for each function calling, in select-able way. Is it possible to have this great feature?
Re: Flow as a Function with Parameters Passing
Action "Execute Flows" passes flow-local variables to the called flow(s). I will check if I can extend the action "Execute Flows" to pass the variables of the called flows back to the calling flow (would only be available when option "Wait for called flows to finish" is checked). An option to wait with the execution of a flow until the last execution has finished should also be possible but I have to think about the implications of such a feature (especially deadlocks).