MarcomProcessOrders

This workflow and the MarcomProcessJobTicket workflow demonstrate how to exchange data with the MarcomCentral website. The demonstration includes a SOAP web service input device and a SOAP web service notification, and uses an order property mapping object to create orders and jobs and set properties for them.

The MarcomReceiveOrders SOAP web service input device simulates a call to a MarcomCentral web service. The input device retrieves an XML order from the sample store at the MarcomCentral website and sends the XML job to the MarcomProcessOrders workflow.

The SetJobPropsFromTextFile step sets the Job name property to Marcom Sample Order.

The DetectInputDataStream step sets the data stream to XML.

The CreateOrdersFromFile step uses the MarcomOrderSample property mapping object to create an order and two jobs. The jobs are created as child jobs. The step also sets property values based on the contents of the XML file. The property mapping object uses these XML elements to identify orders and jobs in the file:

/Order
Identifies orders.
/Order/OrderDetails/OrderDetail
Identifies jobs.

The table lists the XML elements and the properties that they correspond to.

XML element Database name User interface name
/Order/OrderNumber Order.Name Order name
/Order/ID Order.Reference External order reference
/Order/OrderDetails/OrderDetail/User/Name Order.Customer Customer name
/Order/OrderDetails/OrderDetail/SKUDescription Order.Description Description
/Order/OrderDetails/OrderDetail/Quantity Job.Copies Job copies requested
/Order/OrderDetails/OrderDetail/OrderNumber Job.Marcom.OrderNumber MarcomCentral order number
/Order/ID Job.Marcom.OrderId MarcomCentral order ID
/Order/OrderDetails/OrderDetail/ID Job.Marcom.JobTicketId MarcomCentral job ticket
/Order/OrderDetails/OrderDetail/ProductType Job.Marcom.ProductType MarcomCentral product type
/Order/OrderDetails/OrderDetail/ProductName Job.Name Job name

The step then submits the two child jobs to the MarcomProcessJobTicket workflow.

The original order job is sent to the WaitForRelatedJobs step.

When all the child jobs for the order arrive at the WaitForRelatedJobs step in the MarcomProcessJobTicket workflow, RICOH ProcessDirector sends the order job to the RetainCompletedJobs step. The state of the order job changes to Retained.

When that event occurs, the MarcomCloseoutOrder web service notification simulates a call to a MarcomCentral web service. The web service changes the status of the XML order at the sample store.

If the notification called the web service instead of running the simulation, this change would occur at the sample store. On the Display by Item dialog in the Order Manager, the value in the Order Status column for each item in the order would change from Work in Progress to Shipped.

Phases and steps

The illustration shows the steps in each phase of the sample workflow.