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

Question

Question

Folder Wait Conditions

asked on July 11, 2014

I'm having a bit of difficulty getting a Folder condition to work in a workflow session I'm currently developing.  I've never used a Folder condition before so I'm probably missing something.

 

A user assigns a tag to a document with a Request Number field populated in an incoming folder which starts the workflow session.  Workflow then grabs the Request Number as a token and uses that token to create a sub-folder on the same level as the imported document.

 

IE:

 

\Incoming\E1234567 - Document

\Incoming\E1234567\

 

The next step should be that the user imports a Shop Order document into the sub-folder.  The workflow should wait until that sub-folder has a document with the Document Type field having Shop Order selected.

 

I created a wait condition based on the target output entry of the created folder with the condition:

 

Folder: Contents contains an entry with "Field : Document Type equals 'Shop Order'

 

When I attempt to test this it will create the folder and the wait condition will be marked as FALSE:

 

[FALSE] If all of these conditions are true:

         [FALSE] Folder Contents No entries were found matching the criteria.

 

All good so far because there is no Shop Order document in there, however, when I do copy a document with Document Type = Shop Order into the folder the wait condition does not update.

 

I also tried adding another condition were the document count has to be greater than or equal to 1.  I noticed that will not update to TRUE after moving the document into it either (was above the folder content condition in priority), so the target of the wait condition must be wrong but I'm not sure which entry I should be targeting with it if not the output of the folder creation process.

0 0

Answer

SELECTED ANSWER
replied on July 11, 2014

No, unfortunately there is not because of the potential performance impact.

 

And yes, it's probably easier to have a starting rule that checks the folder content/count when documents are added to the folder rather than waiting for a change in the original WF.

0 0

Replies

replied on July 11, 2014

Wait conditions for folder contents are checked on entry changes on the target entry. Creating or copying documents into the folder will not trigger checking the condition.

0 0
replied on July 11, 2014

Is there a way to have a wait condition satisfied by moving/copying/creating a document within a folder then?

 

If not I'm assuming the best option would be to create two separate workflows where one creates the folder and the second manages it after a Shop Order is created/moved into the sub-folder via starting rules?

0 0
SELECTED ANSWER
replied on July 11, 2014

No, unfortunately there is not because of the potential performance impact.

 

And yes, it's probably easier to have a starting rule that checks the folder content/count when documents are added to the folder rather than waiting for a change in the original WF.

0 0
replied on July 11, 2014

Thanks much Miruna, that won't be a problem.  I was just curious because it would have made things easier with using only one set of tokens.  Much appreciated.

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

Sign in to reply to this post.