Behaviour of Execution Count

Post your questions and help other users.

Moderator: Martin

Post Reply
bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Behaviour of Execution Count

Post by bogdyro » 28 Mar 2016 18:01

Hi. What is the expected behaviour of this condition? Does the counter reset when the flow ends? Because it seems to memorize the value when another instance of the flow runs. Martin, can you confirm this? Thanks

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

Re: Behaviour of Execution Count

Post by Martin » 29 Mar 2016 18:07

Hi,

The counter is memorized across flow executions and even between different flows when the same condition with the same name is used. The counter is reset when the condition is met/true (or when Automagic is restarted).

Regards,
Martin

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Behaviour of Execution Count

Post by bogdyro » 29 Mar 2016 18:16

Ok. But is there a way to reset the counter manually? Or can you make a counter variable that resets itself when the flow ends? I need an action to execute until a condition is met, or the counter reaches a certain number. I can do it manually with a script ofcourse but I thought that was the point of ' execution count'

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

Re: Behaviour of Execution Count

Post by Martin » 29 Mar 2016 18:24

Using a local variable in a script is probably the best way to achieve this since the variable/value will vanish when the flow ends. Condition execution count was meant to simplify things when a counter is used across flow executions.

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Behaviour of Execution Count

Post by bogdyro » 29 Mar 2016 20:53

roger that

Post Reply