Business process scenario
The article uses a simple order processing scenario, in which a
business process serves as the event emitter application. The process
accepts a purchase order object as an input and returns the same
object with an updated status of
Rejected. The criteria for approval or
rejection of the purchase order is as follows:
- If PurchaseOrder.Price >= 2000, the order is approved.
- If PurchaseOrder.Price < 2000, the order is rejected.
The BPEL process and various activities within the flow are configured to emit common event infrastructure (CEI) events to be monitored by the BAM application. Figures 1 and 2 depict the BPEL flow and the purchase order business object definition.
Figure 1. BPEL flow for an order processing system
Figure 2. Purchase order business object definition