Expand my Community achievements bar.

Watched Folder accept Folders

Avatar

Level 4

Greetings everyone,

I'm trying to set up a Watched Folder endpoint, but I don't want to specify a file type.  I want to use this watched folder in the following way:

1) Drag a FOLDER to the watched folder

2) Watched Folder picks up the entire folder

3) Orchestration launches to process the folder (i.e. read documents contained within).

So how do I set up the watched folder to do this?  Furthermore, once it's set up correctly, what sort of input would it be in the orchestration?  A list of documents? What would child folders be stored as?  For example:

Root Folder

    |

    |---> myFile.pdf

    |---> More Folder

               |

               |---> mySecondFile.pdf

               |---> myFinalFile.pdf

Would this be stored in the orchestration as:

<list>

     <myFile.pdf>

     <list>

          <mySecondFile.pdf>

          <myFinalFile.pdf>

     </list>

</list>

Any quick answer would be greatly appreciated.

Thank you,

Alex Kloft

3 Replies

Avatar

Level 10

Use * for the input mapping and it'll put the folder content in a input list or map of documents.

Jasmin

Avatar

Level 4

I tried that and it seems to not look in the child folders...do I have something set up incorrectly?

Currently I have:

AdminUI:

input parameter mapping:

Variable:  *.*

Orchestration:

mInputFolder         type: map subtype: document          input and required

should I change the subtype to something else so it doesn't try to treat the child folders as a document?

Avatar

Level 10

Sorry I missed the sub folder structure.

I think it'll only go down one level, so the subfolders won't work.

Jasmin