Was flow called from another flow?
Moderator: Martin
Was flow called from another flow?
Is there a way to tell if a flow was called by another flow?
Re: Was flow called from another flow?
One way to know it is the trigger is not the same as the flow being called. If you have
Flow A : trigger B
Flow C : trigger D
When you use Flow A triggered by trigger B to call Flow C, the variable {trigger} still point to trigger B. But the flow name now changed to Flow C.
The other way is to log the flow name first to some glovar before calling other flow. So when the called flow check the glovar and find something, it knows it was called by other flow. The similar question and solution are here : viewtopic.php?f=4&t=7011
Make a mapping between the caller flow and called flow and track between them. It is complicated though.
If I can know what you want to achieve, maybe I can suggest a better/easier alternative.
Flow A : trigger B
Flow C : trigger D
When you use Flow A triggered by trigger B to call Flow C, the variable {trigger} still point to trigger B. But the flow name now changed to Flow C.
The other way is to log the flow name first to some glovar before calling other flow. So when the called flow check the glovar and find something, it knows it was called by other flow. The similar question and solution are here : viewtopic.php?f=4&t=7011
Make a mapping between the caller flow and called flow and track between them. It is complicated though.
If I can know what you want to achieve, maybe I can suggest a better/easier alternative.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.