Page 1 of 1
pass the result of a flow to another flow
Posted: 21 Jan 2014 05:45
by srjohn
Hi,
For example, I have a flowA which produce a variable var_A.
In flowB, it executes flowA and I want to the var_A to be passed to flowB.
Is there any way but using global variable to achieve this?
The idea is that var_A is the return value of flowA, and flowB just uses the return value.
Thanks,
-srjohn
Re: pass the result of a flow to another flow
Posted: 21 Jan 2014 06:56
by kintrupf
Have a close look at the "Execute flow" action! There is an option "Return variables to the calling flow" which should exactly do what you want!
Re: pass the result of a flow to another flow
Posted: 21 Jan 2014 07:47
by srjohn
kintrupf wrote:Have a close look at the "Execute flow" action! There is an option "Return variables to the calling flow" which should exactly do what you want!
Hi kintrupf,
Thanks for your hint!
But I still don't get it.
I did see "Return variables to the calling flow", but it is only a check box.
I don't see any different whether I checked the box or not checked.
Can you show me some simple example?
Thanks,
srjohn
Re: pass the result of a flow to another flow
Posted: 21 Jan 2014 13:00
by kintrupf
srjohn wrote:kintrupf wrote:Have a close look at the "Execute flow" action! There is an option "Return variables to the calling flow" which should exactly do what you want!
Hi kintrupf,
Thanks for your hint!
But I still don't get it.
I did see "Return variables to the calling flow", but it is only a check box.
I don't see any different whether I checked the box or not checked.
Can you show me some simple example?
Sure, no problem! See the attached flows:
"Flow A" executes "Flow B" where a variable is defined. That variables is then displayed from flow A.
You should also check "Wait for called flows to finish" to make sure the called flow has finished before you check for the variable.
Re: pass the result of a flow to another flow
Posted: 21 Jan 2014 15:29
by srjohn
kintrupf wrote:srjohn wrote:kintrupf wrote:Have a close look at the "Execute flow" action! There is an option "Return variables to the calling flow" which should exactly do what you want!
Hi kintrupf,
Thanks for your hint!
But I still don't get it.
I did see "Return variables to the calling flow", but it is only a check box.
I don't see any different whether I checked the box or not checked.
Can you show me some simple example?
Sure, no problem! See the attached flows:
Variable_from_other_flow.zip
"Flow A" executes "Flow B" where a variable is defined. That variables is then displayed from flow A.
You should also check "Wait for called flows to finish" to make sure the called flow has finished before you check for the variable.
Thanks a lot, kintrupf.
Your example did teach me how to use this feature.
Quite easy and simple.
Thanks again!
-srjohn