Defining a workflow to process MarcomCentral job tickets
The workflow that processes MarcomCentral job tickets receives child jobs from the CreateOrdersFromFile step in the workflow that processes MarcomCentral orders.
Before you define the workflow:
- Plan how to process the orders, including how to map XML elements in the orders to RICOH ProcessDirector order and job properties using an order property mapping object.
- Prepare to call MarcomCentral web services.
- Define a SOAP web service input device.
- Define the workflow that processes MarcomCentral orders.
For more information, see the related tasks.
- Click the Workflow tab.
- Right-click the MarcomProcessJobTicket workflow and select Copy.
- Name the copy of the workflow, fill in or edit other values that you need, and click Continue.
- Check the conditions specified for the (1) Warehouse connector and adjust as required for your MarcomCentral store.
The three conditions on the connector in the sample MarcomProcessJobTicket workflow specify MarcomCentral product types JobDirect, Variable, and Versioned. Jobs with those product types do not go through the 1 Warehouse connector. Instead, those jobs go through the (2) Print shop connector.
- Open the MarcomDownloadPrintFile step chain.
- In the step chain editor, find the Wait step and set the Wait for property to a value that makes jobs wait until your MarcomCentral store provides
the link to the file to download.
The (2) Check for file connector and Wait for property together specify how long a job waits for your MarcomCentral store to provide the link to the file. If the store does not provide the link within the specified time, the job goes to the FailWithMessage step. The Wait for property specifies a wait of 30 seconds, and the rule on the (2) Check for file connector specifies that the job goes through the branch 9 times. The elapsed time before the job goes to the FailWithMessage step is 5 minutes. If you set the Wait for property to 1 minute, the elapsed time is 10 minutes. If you then set the rule on the connector to Custom count 1 < 20, the elapsed time is 20 minutes.
- For the CallSOAPService step:
- Set the Use proxy property to the proxy server (if any) that you use to communicate with the web service.
- Set the Password property to your MarcomCentral order token.
- Set the SOAP request property to the GetJobTicketByLineItem SOAP request that you imported.
- If you prepended MyStore to the names of the SOAP requests when you imported them, set the property to MyStore-GetJobTicketByLineItem.
- Update the ApplyXSLTransform2 step, if needed.
In the ApplyXSLTransform2 step, the XSLT file property is set to use the
downloadOverrides.xslt
file provided with the feature. This file retrieves the URL of the print file and copies the URL into the Custom 3 job property. The DownloadFile step uses that value to retrieve the print file.You can use the
downloadOverrides.xslt
file as it is. If you want to retrieve additional information from MarcomCentral, create a new XSLT file and update this property. - For the DownloadFile step, set the Use proxy property to the proxy server (if any) that you use to communicate with the web service.
- Close the step chain editor.
- For the RetainCompletedJobs step, set the Retention period property to an appropriate value for your site.
- In the Printable branch, modify the four steps in the Print phase or replace them with your steps for processing and printing PDF jobs.
- Modify the Warehouse branch:
- If your workflows process only print items, delete the branch.
- If your workflows process both print and non-print items, you can keep the ManualStepWithAutoStart step or replace it with other steps.
- If the warehouse staff has access to RICOH ProcessDirector, they can complete the ManualStepWithAutoStart step when they add a non-print item to the order.
- If the warehouse staff does not have access to RICOH ProcessDirector, you can use other steps to communicate with them.
For example, you can add a SendEmail step that sends an email message to the warehouse staff when the non-print item enters the Warehouse branch. If your business uses an application with a web service interface to handle pick and pack operations, you can add a CallSOAPService step to the Warehouse branch. The step sends the data in the job to the application.
- Save the workflow.
- Connect the workflow to the workflow that you defined to process MarcomCentral orders:
- In the workflow editor, open the workflow that you defined to process MarcomCentral orders.
- For the CreateOrdersFromFile step, set the Workflow for new jobs property to the name of the job ticket workflow.