
Route jobs based on JDF information
This example picks up the JDF job ticket submitted with a job; the JDF information is added to the job ticket of that job. A script then searches for the company name in the JDF job ticket and routes the job into the correct company folder.
This flow is compatible with: PowerSWITCH.
Information

This flow accepts:
- Mime packages
- Zip packages
- Job folders
As long as the JDF file and the production file are stored in the same folder or package, the link between them will stay intact.
All jobs go through the uncompress tool first. Mime and zip packages are decompressed resulting in a folder that contains the JDF and production file(s). Job folders pass through the uncompress tool without changes.
The JDF Pickup tool will find the JDF file next to the production file; it adds the JDF information to the respective internal SWITCH job ticket.
The script which follows will read the JDF information stored in the job ticket and retrieve the customer company's name. If you want to search for other information stored in the JDF file, you can do so by changing the XPath property (for more information go to SWITCH Help Index).
If the company name matches one of the output connections, the job is routed to the correct folder. If no matching connection is found, the job is moved to the "Unknown" folder.
Using this flow
- Download the flow and save it on your computer: download flow
- Launch PowerSWITCH
- Use the “Flow > Import…” menu item
- In the dialog that is shown, select the flow file
The flow now appears in the flow list. You can now examine it or customize it to your needs.
