Expand my Community achievements bar.

SOLVED

Stop running a workflow when an instance of the same workflow is running at the moment

Avatar

Level 4

Hi,

I want to run my workflow daily in schedule. I don't want to run my workflow if already an instance of workflow is not finished. How can we achieve this?

Vapsy​, florentlb​, smacdonald2008​, Jean-Serge Biron​, hillaryc26951904​ kindly provide your feedback.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi,

you can store the status of the workflow in an instance variable called running in an advanced Javascript Code activity and a Wait activity like this (don't forget to set your variable running to false at the end of the workflow) :

only one instance running.png

Kind regards,

Pierre

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

Hi,

you can store the status of the workflow in an instance variable called running in an advanced Javascript Code activity and a Wait activity like this (don't forget to set your variable running to false at the end of the workflow) :

only one instance running.png

Kind regards,

Pierre