How to execute a flow and wait til it finishes
Posted: 15 Jul 2018 07:01
I created a flow to check for movement.
(by getting device orientation several times. If the x,y,z stays very similar after several seconds, set global_moving = false, otherwise true as soon as a difference is found)
I have another flow that executes that flow, then check for the value of global_moving.
The problem is it moves to the next action (ie. reading global_moving) before the check-for-movement flow even finishes.
How can I make it wait til it finishes before checking the value? (I tried Flow Execution Policy but it didn't make any difference)
(by getting device orientation several times. If the x,y,z stays very similar after several seconds, set global_moving = false, otherwise true as soon as a difference is found)
I have another flow that executes that flow, then check for the value of global_moving.
The problem is it moves to the next action (ie. reading global_moving) before the check-for-movement flow even finishes.
How can I make it wait til it finishes before checking the value? (I tried Flow Execution Policy but it didn't make any difference)