Sleep or wait function without pausing flow?

Post your questions and help other users.

Moderator: Martin

Post Reply
Ghlave
Posts: 28
Joined: 06 Aug 2013 18:06

Sleep or wait function without pausing flow?

Post by Ghlave » 11 Mar 2014 15:11

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Sleep or wait function without pausing flow?

Post by Martin » 11 Mar 2014 16:35

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

Post Reply