You are viewing limited content. For full access, please sign in.

Question

Question

Identify Entry Lock in Workflow

asked on June 20, 2016

Hello,

I am trying to find a way to bypass Entry Lock in workflow. 

I have multiple files coming in at a single time.  Imported file 1 is meant to merge with existing file X, however file X is locked by the user.  This causes the workflow to enter into a retry loop.  I am aiming to find a way to test/identify if file X is locked in the workflow and if so move on to the next file in the list; so import file 2 could then try to merge with existing file Y.

I am unable to find a way to identify entry locked outside of admin console, any help is appreciated.

 

Darren

0 0

Answer

SELECTED ANSWER
replied on July 13, 2017

I have found a simple solution/workaround for this issue.

When doing a Search/Find Entries activity use the Additional Properties pane and choose the “Locked By” property.

Then use a Routing Decision/ Conditional Sequence to determine if the “Locked By” token is empty or not.  If empty then take the path that merges the pages, otherwise bypass.

 

I realize that in the time frame between the check for "Locked By" and the Move Pages Activity the entry could be locked by a user. However, in the scenarios where we need this, the time between one activity and another is usually a matter a milliseconds.  Plus, it won't be any worse than the current situation.   

 

 

 

2 0

Replies

replied on June 20, 2016

Are you doing this in a For Each Entry loop? If so, you should move the activities inside the loop to a separate workflow that you invoke. That way, documents are processed separately and one being locked does not affect the other.

Checking for a lock is not necessarily going to help since between the time you check and the next activity, a user could still acquire a lock.

0 0
replied on June 20, 2016

Yes the activities are contained within a for each entry loop, but if one file is locked it hold up the whole process as the workflow will not continue until it can merge the pages with the initial doc. What I am aiming to do is move on to the next file in the list if the first one is locked, but other than checking admin console I can see now way to identify if the file is locked.   Is there a way to identify this in workflow?

replied on June 20, 2016

Yes, the activities are contained within a for Each Entry Loop.   My preference would be to not make the separate flow that kicks off via invoke.

Is there a way to identify a locked entry within workflow? 

0 0
replied on June 30, 2016 Show version history

You can run an SDK script and use EntryLockListing to get all the locks and check if the entry ID is listed. Or you can try to lock it and see if it fails, since only one lock can exist at a given time.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.