< Previous | Next >

Creating situation events

In this lesson, you will create situation events to allow the outbound events to be visualized as alerts in the Business Space.

  1. Create the Shipped Percentage situation event.
    1. Drag the DeclinedOrderEvent.xsd file to under Event Definitions.
    2. Create the Shipped Percentage Event outbound event by clicking the KPI Model tab (for OrderHandling Monitor.mm), right-clicking the OrderHandling KC, selecting New > Outbound Event, and entering Shipped Percentage Event as the name.
    3. Select Configure this event to be processed by WebSphere Business Monitor action services.
    4. For the trigger, browse to Order Handling KC > Percentage of Orders Shipped Trigger 1 and click OK and then click OK again.
    5. In Event Type Details, in Event Parts, click Add and then click Select Type.
    6. In the Select Event Part Data Type window, select Choose the data type from the XML schemas accessible from this monitor project.
    7. Select ClipsAndTacksF1_Monitor > DeclinedOrderEvent.xsd > doe:DeclinedOrderEvent, click Next, then click Finish.

      Select Event Part Data Type window

    8. Change the path to cbe:CommonBaseEvent/doe:DeclinedOrderEventType, and click Finish.
      Create New Event Part Type window
    9. In the Outbound Event Content, expand Percentage of Orders Shipped Trigger1 > My Event Part. For BusinessSituationName, enter 'Shipped Percentage Event' for the expression, including the single quotation marks.

      Event Attributes Detail window

  2. Create Order processing Time situation event.
    1. Drag the LateAverageOrderShippedEvent.xsd file to under Event Definitions.
    2. Create the Order Fulfillment Event outbound event by clicking the KPI Model tab (for OrderHandling Monitor.mm), right-clicking OrderHandling KC, selecting New > Outbound Event, and entering Order Fulfillment Event for the name.
    3. Select Configure this event to be processed by WebSphere Business Monitor action services.
    4. For the trigger, browse to Order Handling KC > Average Process Duration Trigger 1 and click OK and then click OK again.
    5. In Event Type Details, in Event Parts, click Add and then click Select Type.
    6. In the Select Event Part Data Type window, select Choose the data type from the XML schemas accessible from this monitor project.
    7. Select ClipsAndTacksF1_Monitor > LateAverageOrderShippedEvent.xsd > laose: LateAverageOrderShippedEvent, then click Finish.

      Select Event Part Data Type window

    8. Change the path to cbe:CommonBaseEvent/laose:LateAverageOrderShippedEventType and click Finish.
    9. In the Outbound Event Content, expand Average Process Duration Trigger1 > My Event Part. For BusinessSituationName under Expression enter 'Order Fulfilment Event' including the quotes.

      Event Attributes Detail window

    10. 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.
  3. Click Ctrl-S to save your work.
< Previous | Next >