In this lesson, you will create situation events to allow the outbound events to be visualized as alerts in the Business Space.
- Create the Shipped Percentage situation event.
- Drag the DeclinedOrderEvent.xsd file to under Event Definitions.
- Create the Shipped Percentage Event outbound event by clicking the KPI Model tab (for OrderHandling Monitor.mm), right-clicking the OrderHandling KC, selecting , and entering Shipped Percentage Event as the name.
- Select Configure this event to be processed by WebSphere Business Monitor action services.
- For the trigger, browse to and click OK and then click OK again.
- In Event Type Details, in Event Parts, click Add and then click Select Type.
- In the Select Event Part Data Type window, select Choose the data type from the XML schemas accessible from this monitor project.
- Select , click Next, then click Finish.
- Change the path to cbe:CommonBaseEvent/doe:DeclinedOrderEventType, and click Finish.
- In the Outbound Event Content, expand . For BusinessSituationName, enter 'Shipped Percentage Event' for the expression, including the single quotation marks.
- Create Order processing Time situation event.
- Drag the LateAverageOrderShippedEvent.xsd file to under Event Definitions.
- Create the Order Fulfillment Event outbound event by clicking the KPI Model tab (for OrderHandling Monitor.mm), right-clicking OrderHandling KC, selecting , and entering Order Fulfillment Event for the name.
- Select Configure this event to be processed by WebSphere Business Monitor action services.
- For the trigger, browse to and click OK and then click OK again.
- In Event Type Details, in Event Parts, click Add and then click Select Type.
- In the Select Event Part Data Type window, select Choose the data type from the XML schemas accessible from this monitor project.
- Select , then click Finish.
- Change the path to cbe:CommonBaseEvent/laose:LateAverageOrderShippedEventType and click Finish.
- In the Outbound Event Content, expand . For BusinessSituationName under Expression enter 'Order Fulfilment Event' including the quotes.
- For AverageOrderProcessingTime, set the expression to xs:string(Average_Process_Duration div xs:dayTimeDuration('P1D')). This expression displays the average process duration in units of days.
- Click Ctrl-S to save your work.