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

Avatar

Avatar

santhoshsrg

Avatar

santhoshsrg

santhoshsrg

10-06-2019

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.

View Entire Topic

Avatar

Avatar

pierrec70731455

Avatar

pierrec70731455

pierrec70731455

11-06-2019

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