Output Separation

In Workflow, how can I tell if a Create Output task has produced a single output vs. separate documents stored in the “filestore” path?

When Create Output uses an Output Preset with Separation, and is checked to process output “Through Workflow”, a text file with a comma-separated list of filenames is produced. I want to detect that, parse the file, and loop through the files moving them into the proper output folder.

I cannot do this with a Text Condition because this file has an error and is missing the line termination characters, so I cannot do a text condition to see if, for example, the first 255 characters contain the string “filestore”.

Note to OL: your developers really need to get on the same page regarding line termination characters. I had to raise a fuss to get the “option” in the data mapper to NOT produce an artificial blank line at the end of text files, now there is a conflict between the Text Condition (rightfully) expected each line to end with a line termination character, but the Create Output task produces files WITHOUT a CRLF…

You should change your Emulation Type appropriately. If you treat this file as ASCII data, you won’t encounter this issue. It’s just Line Printer data that needs a proper CRLF at the end to make the line valid.

This creates a paradox. I’m dealing with what the Create Output task produces, period. It may produce a PS file, a PDF file, or a “text” file with a comma-separated list of filenames in the filestore. I need to detect WHAT it produces, and cannot perform any text-based detection because there is a bug in the text file produced by the Create Output task (missing CRLF at the end of the line).

I cannot “Change Emulation” to text IF it’s text to TEST if it’s text…

Sure you can. They’re all just text files in the end.

Change emulation to text, if it contains filestore, keep as text. If it contains %PDF, change to PDF, if it contains %!PS it’s postscript and maybe you don’t need to worry about the emulation from then on. Depends on the job.