Page 1 of 1

Issue with flow_name

Posted: 08 Dec 2018 10:38
by Jos
Hi,
I searched for it in the forum, but did not find any report or solution.

Flow A logs the value of flow_name, calls flow B and logs the value of flow_name again.
Scenario 1: The flow B is called with "wait"=true and "return values"=false. The result is, as expected: "A A".
Scenario 2: The flow B is called with "wait"=true and "return values"=true. The result is, as unexpected: "A B".

Am I missing something?
Thanks

Re: Issue with flow_name

Posted: 09 Dec 2018 17:24
by Desmanto
It is working as expected. If you set return value = true, any value from the flow B will be returned to A. In everytime you call a flow, the flow_name will be changed to the current running flow (called flow, flow B). So flow_name has been changed to "flow B". If you don't return value, the var flow_name is not returned to flow A, hence flow_name in flow A stay. But if you return the value, the flow_name which contains Flow B now, is returned to A and hence flow_name in flow A after returned become 'flow B". You have to save the flow name to some other variable first, so it won't changed.

Similar topic here : viewtopic.php?f=4&t=7011

Re: Issue with flow_name

Posted: 04 Jul 2019 06:21
by Jos
Thanks, Desmanto!
Is there any way to get the current flow name in any place in the flow, no matter which other sub flows were called previously inside this flow?

Re: Issue with flow_name

Posted: 04 Jul 2019 20:17
by Pepy
@Jon
The best and easiest way to do this is like Desmanto said:
Desmanto wrote:
09 Dec 2018 17:24
You have to save the flow name to some other variable first, so it won't changed.