Create a rule set that reads an XML file and uses the data in the file to process the job—for example, to add and refine an input file. The new job gets its rule set from a template job.
Template
.Add the Read XML action, and set the following parameters:
Parameter | Setting |
---|---|
Schema Name | General > MySchema |
File | String1 |
Validate | True |
Add the Add Input Files action to the Read XML Success event, and set the following parameters:
Parameter | Setting |
---|---|
UNC File Paths | XML Data (MySchema) > InputFile |
Job | XML Data (MySchema) > JobName |
Add the Refine Input Files action to the Add Input Files Added event, and set the following parameters:
Parameter | Setting |
---|---|
Input Files | Input Files |
Process Template path | Previous Event (XML Parsed OK) > XML Data (MySchema) > ProcessTemplateRefine |
Add the Perform Loose Page Output action to the Refine Input File Success event, and set the following parameters:
Parameter | Setting |
---|---|
Pages | Input Files Refined Successfully > Pages |
Process Template path | Previous Event (Input File Added) > Previous Event (XML Parsed OK) > XML Data (MySchema) > ProcessTemplateOutput |
Add the Email action to the Refine Input File Warn event, and set the following parameters:
Parameter | Setting |
---|---|
To | Previous Event (Input File Added) > Previous Event (XML Parsed OK) > XML Data (MySchema) > EmailProcessError |
Subject | Refine failed |
Add the Email action to the Perform Loose Page Output Success event, and set the following parameters:
Parameter | Setting |
---|---|
To | Previous Event (Input File Refined OK) > Previous Event (Input File Added) > Previous Event (XML Parsed OK) > XML Data (MySchema) > EmailProcessError |
Subject | Output succeeded |
Add the Email action to the Perform Loose Page Output Warn event, and set the following parameters:
Parameter | Option |
---|---|
To | Previous Event (Input File Refined OK) > Previous Event (Input File Added) > Previous Event (XML Parsed OK) > XML Data (MySchema) > EmailProcessError |
Subject | Output failed |
ProcessJob
.Note: If you write XML that does not adhere to the schema, Prinergy will fail upon reading the XML file and the information will be shown in the Rule Set Execution History panel with a red cross. The information will also be displayed in the Diagnostics application on the Prinergy server.