Semaphore like behavior in Flow Designer

cedric-try
Tera Contributor

Hello ServiceNow Community,

 

I am looking for some guidance on how to create a semaphore-like behavior within the Flow Designer engine. Specifically, I want to ensure that only one instance of a particular flow is executed at a time. Additionally, it would be ideal if I could create a named lock based on a sys_id, so that only one execution per person can occur for the same flow in the same time.

 

Has anyone implemented something similar or have any suggestions on how to achieve this? Any help would be greatly appreciated.

 

Thank you!

 

1 REPLY 1

dwhitener
Tera Contributor

Looking for the same and found your post.  I see the old workflow engine had a "lock" feature that appeared to implement this functionality, but I haven't found an equivalent in flow designer.  I have found flow designer to be a little slower between steps and when multiple flows run at the same time I am creating a mess in some cases when accessing shared variables like API tokens.  It's probably poor design on my part, but this feature would help prevent this situation.  Love to hear if anybody else found a solution.

thanks!