IBM Operational Decision Manager
This chapter shows how to use the CICS event specification to create an event application in IBM Operational Decision Manager to detect event patterns.
This chapter includes the following topics:
9.1 Scenario overview
IBM Operational Decision Manager can receive CICS events and perform event pattern detection. IBM Operational Decision Manager includes the following components:
Decision Server: Used for managing decisions and detecting event patterns.
Decision Center: Used for putting decision management in the hands of those who drive the business.
For more information about Operational Decision Manager, see this website:
In the Stock quote scenario, when a stock quote is requested by a customer, a CICS event is emitted. By using this kind of event, you can use the Decision Server component of Operational Decision Manager to identify a pattern; for example, where a customer submits four stock quotes within two hours. This pattern can show the customer has potential interest to purchase the stock, but has not yet made up their mind to proceed. The business can then take a proactive action to encourage the purchase, such as sending a discount offer to the customer through email.
To add to the business use case, a more complex pattern can be identified by using the Decision Server. For example, if the customer made four stock quotes but did not order the stock after one day, a discount offer might be sent to the customer. For more information about this scenario, see Figure 4-4 on page 73.
Section 9.2, “Building an event project in Event Designer” describes the steps to build the event application in the Event Designer component of Decision Server using the event specification exported from CICS Explorer.
Section 9.3, “Next steps” on page 200 provides a pointer to a Redbooks publication for further steps for using Operational Decision Manager to deploy the event application and look at the events and actions.
9.2 Building an event project in Event Designer
This section explains how to use the Event Designer to build the event application. The Event Designer is a Decision Server Events component that is based on Eclipse and supports the definition of the metadata layer that is required for business event processing. Use the Event Designer to create all the building blocks for your event application, including events, business objects, actions, and event rules.
For more information about the artifacts that can be created in an event project, review the event projects topic in the Operational Decision Manager Information Center, which is available at this website:
9.2.1 Creating an event project
Complete the following steps to create the event project in the Event Designer:
1. In the Event Designer, select File  New → Event Project.
2. Enter a name for the project; for example, QUERY-STOCK, and click Finish.
9.2.2 Creating event and business objects
In the new event project, you create the event objects that represent the stock query event structure. You can create business objects from the event objects that carry information from the event received to the action that is fired by the Decision Server.
You can create the event objects manually or import an XML representation of the business event and create the business objects from this. Because you already have the XML representation of the CICS event, which is the .xsd file that is exported from event specification as shown in 6.3.1, “Exporting the event specification” on page 121, QueryStock.xsd, you can use this file to import to Event Designer and create the event objects. This file also can be found in Appendix B, “Additional material” on page 243.
Because the Decision Server uses HTTP connector to receive the events, you must make sure that the EP adapter that is used for the Stock Quote event binding is the HTTP EP adapter, and that the event format is WebSphere Business Events (WBE) when you export the event specification.
Complete the following steps to define the event object and the business object:
1. Right-click the new QUERY-STOCK project and select New → Event.
2. Select Create an event based on an XML Schema.
3. Browse to the path where the QueryStock.xsd file is located, click Next, then click Finish. An event called QueryStock is created, as shown in Figure 9-1.
Figure 9-1 Creating QueryStock event object
4. Right-click QueryStock_Data under QueryStock event and select Create Business Object from the Event Object.
5. Enter QueryStock_Data as the business object name and click Finish. A business object called QueryStock_Data is created, as shown in Figure 9-1.
9.2.3 Creating actions and action objects
The action that starts when the event pattern is identified now can be created from the business object. Complete the following steps to create an action:
1. Right-click the QUERY-ORDER project and select New → Action.
2. Select Create a blank Action and click Next.
3. Enter the name FollowUp for the Action and click Next.
4. Leave the connector set to None and click Finish.
Complete the following steps to create the action objects:
1. Right-click the QueryStock_Data business object and select Create Action Object From This Business Object.
2. Enter a name for the action object and select the QUERY-ORDER project and FollowUp action, as shown in Figure 9-2.
Figure 9-2 Creating the Action Object from the business object
3. Click Finish to create the action object.
9.2.4 Creating an event rule
You can now author the event rules to identify event patterns and perform the actions. It is a good practice to start with a simple rule and test it, then build a more complex rule on that rule.
A simple rule is shown in Figure 9-3 on page 198. On top of this simple rule, you can add a filter to filter out the customers who already ordered a stock based on the Order event, so that a discount offer does not need to be sent to these customers.
Figure 9-3 A simple event rule
For more information about building more complex rules, see the topic Getting started with event rules in the IBM Operational Decision Manager Information Center, which is available at this website:
9.2.5 Configuring the technology connectors
The final authoring stage for the event application is to configure the event technology connectors (connectors) for the Decision Server Events run time to receive the event.
This scenario uses the HTTP event connector to receive the events from CICS.
Configuring the event connector
The Query Event is received from CICS by using the HTTP connector. Complete the following steps to configure the event connector:
1. Double-click the STOCK-QUERY event to open the Event editor.
2. Select the Connector tab to browse to the connector panel, as shown in Figure 9-4.
Figure 9-4 HTTP event connector
3. Select HTTP from the Connector Type drop-down menu as the connector type for the Request event.
4. Select Connector packet from the Event format drop-down menu.
5. Save the changes and close the Event editor.
At this point, the QUERY-STOCK project should look like Figure 9-5 on page 200, which has an event object, business object, action, action object, and an event rule.
Figure 9-5 Event application project view
Configuring the action connector
To simplify testing of the scenario, you do not configure a connector for the FollowUp action. Instead, the Events tooling is used to verify that the action fired when the business rule is met.
In an actual scenario, an appropriate connector is used to send the generated action to the required system. For example, the FollowUp action can deliver an email to customer.
9.3 Next steps
You can now deploy the event application to the Decision Server Events run time on z/OS and then run the shopping sample and create some queries on the stocks. To verify that the CICS events are received by the Decision Server, you can log in to the events administrative console and look at the reports of events and actions.
For more information, see Making Better Decisions Using IBM WebSphere Operational Decision Management, REDP4836-00, which is available at this website:
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset