Page 1 of 1

Behaviour of Execution Count

Posted: 28 Mar 2016 18:01
by bogdyro
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

Re: Behaviour of Execution Count

Posted: 29 Mar 2016 18:07
by Martin
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

Re: Behaviour of Execution Count

Posted: 29 Mar 2016 18:16
by bogdyro
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'

Re: Behaviour of Execution Count

Posted: 29 Mar 2016 18:24
by Martin
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.

Re: Behaviour of Execution Count

Posted: 29 Mar 2016 20:53
by bogdyro
roger that