Stop running a workflow when an instance of the same workflow is running at the moment | Community
Skip to main content
Level 4
Jun 10, 2019 5:45 PM UTC
Solved

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

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
pierrec70731455
pierrec70731455Accepted solution
Level 4
Jun 11, 2019 9:27 AM UTC

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) :

Kind regards,

Pierre

1 reply

pierrec70731455
pierrec70731455Accepted solution
Level 4
Jun 11, 2019 9:27 AM UTC

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) :

Kind regards,

Pierre

Translate