cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved] How to know if a workflow is running on a file ?

riogrande
Champ in-the-making
Champ in-the-making
Hello all,

All is in the title, how to know if a workflow is running on a file ?
I launch my workflow with a JS file, but I want to launch it only if I'm sure that there isn't already a workflow running.
4 REPLIES 4

jayjayecl
Confirmed Champ
Confirmed Champ
Have a look at the file's details page.
You'll see a panel about the workflow instances bound to that file.
Now, you just have to see the code that hides behind this feature, and see how you can use it according to your needs.

good luck

riogrande
Champ in-the-making
Champ in-the-making
Yes I see that, but no idea how to use it in my javascript.
Anyway I workaround and added a "workflowLock" status to my file, so if it's in a workflow, the status is set to 'true' and before the workflow ended the status is again set to 'false'.

Properly not the cleanest way to do that, but when I can avoid Java I do it 😕

Could be cool to have somethings like document.workflow.count() Smiley Tongue

mikeh
Star Contributor
Star Contributor
Could be cool to have somethings like document.workflow.count() Smiley Tongue
You mean like document.activeWorkflows.count..?

Mike

riogrande
Champ in-the-making
Champ in-the-making
ho… I find it thanks  Smiley Surprisedops:
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.