Example 1: Processing Orders As They Are Received
In this example, an order-entry system must process incoming orders in the order in which they are received. The orders are placed using a web client and the ActiveMatrix BusinessWorks process definition uses an HTTP Receiver process starter to accept the incoming orders. The following figure illustrates the example process definition.
Example order-entry system
In this example, you wish to sequentially execute all orders that are accepted by this process definition. To accomplish this, specify a constant in the Sequencing Key field of the Misc tab of the AcceptOrder HTTP Receiver process starter. For example, place "OrderEntry"
in the Sequencing Key field. Because you placed a constant in the field, the value of the XPath expression is identical for each incoming order. Therefore, all new orders are executed in the order they are received.