Please enable JavaScript to view this site.

InterFormNG2 Manual

Navigation: Spooled file support > Spooled files in the workflow

Condition workflow on spooled file attributes

Scroll Prev Top Next More

When you build a workflow tree structure to handle all the different types of spooled files, then you normally need to look at the spooled file attributes (e.g. spooled file name) apart from the spooled file contents to identify the spooled file type and e.g. be able to match the spooled file with a template.

 

A list of all retrieved spooled file attributes are listed here.

 

This video shows an example of how to do this:

 

 

One way to condition your workflow is to e.g. use the name of the input spooled file to decide, what should happen.

 

Here is an example:

 

NG2ConditionSplfWorkflow0001

 

In the example above we either create a PDF file, print or do nothing depending on the spooled file name, which is checked in the Choice component:

 

NG2ConditionSplfWorkflow0002

 

From the settings above you can see, that if the name of the input spooled file is QPRINT, then InterFormNG2 is choosing the first sub-tree (to create a PDF file), if the name is EDTPRT, then the second sub-tree is triggered, which will print out on the PRT01 printer.

 

Normally it is recommended to also include a spooled file action like delete, hold or move to another output queue, but this was not done above to keep the size of the workflow as small and simple as possible.