Page 1 of 1

Sleep or wait function without pausing flow?

Posted: 11 Mar 2014 15:11
by Ghlave
I've got a flow that has two branches, one of which only executes if a condition is met. That branch has a sleep in it that pauses the whole flow (both branches) and I'd rather it didn't do that. Is there a function that will just wait a duration instead of pausing the entire flow?


Specifically, I'm having a notification box pop up if I receive an SMS. If the screen is locked, it unlocks first, then waits 15s and relocks the keyguard.

Re: Sleep or wait function without pausing flow?

Posted: 11 Mar 2014 16:35
by Martin
Parallel actions within a flow wait for each other to continue with the next action. If you want to execute multiple branches in parallel you have to extract one branch into its own sub-flow and call the flow using an action Execute Flows.
You can leave the trigger in the sub-flow empty if you only call it from the main-flow. The sub-flow needs to be enabled.

Regards,
Martin