Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

santhoshsrg
Level 4
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
pierrec70731455
Correct answer by
Level 5
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
pierrec70731455
Correct answer by
Level 5
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