Asynchronous sleep

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
mathieson
Posts: 51
Joined: 13 Aug 2013 18:16

Asynchronous sleep

Post by mathieson » 13 Jan 2014 08:28

Hello,

Is there such a suing as asynchronous sleep in automatic?

For example... Can I run the attached flow with just 1 sleep command somehow?
Attachments
exported_data_20140113_022810.xml
(5.99 KiB) Downloaded 817 times

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Asynchronous sleep

Post by MURTUMA » 13 Jan 2014 09:48

From the layout of the flow I assume you want to have a sleep action after/before each action on the left? If that's the case, you have to put each sleep action on the same path.

In your flow, those sleep actions equal 0.04s. Each of them executes right after another. Also, any sleep action stops the whole from running, not just the path they're on.

mathieson
Posts: 51
Joined: 13 Aug 2013 18:16

Re: Asynchronous sleep

Post by mathieson » 13 Jan 2014 15:15

Murtuma,

Thanks for the reply. That is exactly what I do not want, the sleep action to stop the whole from running, I want to know if there is a "sleep and continue execution" type of action?

Thanks.

mathieson
Posts: 51
Joined: 13 Aug 2013 18:16

Re: Asynchronous sleep

Post by mathieson » 13 Jan 2014 15:57

Ok, I "solved it" by simply putting the same number of steps on all three conditions, this way I believe it will always get to the end at the same time.

Here it is in case anyone is interested.
Attachments
[Automagic] Flows.xml
(5.07 KiB) Downloaded 858 times

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Asynchronous sleep

Post by MURTUMA » 13 Jan 2014 18:33

There's no point trying to make different paths asynchronous and with your method it's not even possible. Actions does their own things without acknowledging anything else and different actions take different amount of time to accomplish. The thing is that assuming all of the three conditions are true, the last branch runs three times.

What kind of logic are you trying to achieve with the first three conditions? AND, OR or something else?

guuzendesu
Posts: 62
Joined: 15 Jan 2014 08:25

Re: Asynchronous sleep

Post by guuzendesu » 26 Jan 2014 22:42

I'm rather new at this, but I saw this and was intrigued. I did a little test script and I found that it seems the different branches execute in the order they are attached to the previous action/trigger. I don't know if that would help anything, but I found it interesting. I just made two different branches with input boxes, ran the script and the box that would pop up first was the first one attached. It changed when I deleted the first connecting line and drew a new one in the same place.

Probably already known but maybe not by everyone. Ok, maybe just me. :)

Locked