In some cases it is desirable to configure a watched folder so that it will accept a folder containing multiple input files and have the multiple output files saved to a folder by the same name as the incoming folder. For example, the requirement may be to convert documents using PDF Generator whereby you want to provide a series of related or “packaged” files for conversion and you need the results for a given transaction or “package” to be written to a similarly named result folder. The thing that has tripped up some customers is how to generate a result folder by the same name as the input folder.
The real trick to getting a folder name replicated in the result directory is to add “%F\” in the Output value for the watched folder settings (the startpoint created in Workbench). Attached is a very simple process that demonstrates a watched folder startpoint that takes in a list variable and passes back out another list variable.
You should be able to run this sample by importing the process in Workbench, adding the process to an “Application” and then deploying it. This should generate the actual watched folder and you can copy a folder that contains any number of files into the “input” folder. It should create a folder by the same name as the input folder in the result location. From there you can insert any document processing you like into the process to do the real document manipulation that LiveCycle excels at.