Stop running a workflow when an instance of the same workflow is running at the moment | Community
Skip to main content
Level 4
June 10, 2019
Solved

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

  • June 10, 2019
  • 1 reply
  • 2768 views

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.
Best answer by pierrec70731455

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
June 11, 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) :

Kind regards,

Pierre