Configuring workflows to receive orders
To process order XML files generated by your ordering system, you set up a workflow
that includes a step based on the CreateOrdersFromFile step template. That step uses an order property mapping to define one or more orders
and the jobs they contain. The step also submits those jobs to another workflow for
processing.
- Note:
- Before you begin, make sure you create:
- An order property mapping object mapping that can interpret the order XML files that this workflow receives.
- An input device that receives XML files. You can copy the OrderHotFolder sample or add a new input device.
- A workflow to process the jobs included in each order.
To configure a workflow to receive orders:
- Click the Workflow tab.
- Copy or create a workflow and open it in the Workflow Editor.
- If you are editing an existing workflow, disable it.
- If you are not using a copy of the OrderSample workflow, add a step based on the CreateOrdersFromFile step template to the Receive phase of the workflow.
- Set values for the properties of the CreateOrdersFromFile step:
- For the Order input file property, specify the name of the order XML file. You can enter a file name, a symbol that resolves to a spool file name, or use a step resource. Refer to the help for additional information. The default value is the symbol: ${getFileName(print,xml,read)}
- For the Order property mapping property, select the property mapping object you created for this workflow.
- For Create as child jobs, decide whether you want the jobs in each order to be created as independent jobs
or as child jobs of the job that processes the order XML.The primary difference between the options is in the Job number property of those jobs. Job numbers for child jobs start with the job number of the parent, followed by a decimal and a number after it. For example, if the parent job number is 1020, the child job numbers are: 1020.1, 1020.2, 1020.3 Independent jobs are assigned entirely different job numbers. In either case, the jobs are still linked to the order.
- For Workflow for jobs, choose the workflow to process the jobs in each order. If you have not created that workflow yet, set it to Not set. Remember to update the workflow after you create the workflow.
- Add steps and connectors for other processing, if needed.
- Save the workflow.
- Update the input device you created to make sure it submits jobs to the created workflow.
- Test the workflow:
- Enable the workflow.
- Enable and connect the input device that sends orders to the workflow.
- Submit an order XML file to the input device.