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:

  1. Click the Workflow tab.
  2. Copy or create a workflow and open it in the Workflow Editor.
  3. If you are editing an existing workflow, disable it.
  4. 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.
  5. Set values for the properties of the CreateOrdersFromFile step:
    1. 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)}
    2. For the Order property mapping property, select the property mapping object you created for this workflow.
    3. 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.
    4. 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.
      Note:
    • This step only runs on the primary server. Do not tune it to run on an application or secondary server, including a local secondary server.
  6. Add steps and connectors for other processing, if needed.
  7. Save the workflow.
  8. Update the input device you created to make sure it submits jobs to the created workflow.
  9. Test the workflow:
    1. Enable the workflow.
    2. Enable and connect the input device that sends orders to the workflow.
    3. Submit an order XML file to the input device.