80 Flexible Decision Automation for Your zEnterprise with Business Rules and Events
Figure 4-6 All fields required in the Vehicle business object
5. Now open and add fields to the Driver business object by repeating step 1 on page 79 to
step 4 on page 79, as shown in Figure 4-7, and add the fields:
– Enter the name First Name, select the String data type, and then, click Finish.
– Enter the name Last Name, select the String data type, and then, click Finish.
– Enter the name Zip Code, select the String data type, and then, click Finish.
– Enter the name House Number, select the Integer data type, and then, click Finish.
– Enter the name Age, select the Integer data type, and then, click Finish.
– Enter the name License Date, select the String data type, and then, click Finish.
– Enter the name License Status, select the String data type, and then, click Finish.
– Enter the name Number Accidents, select the Integer data type, and then, click Finish.
Figure 4-7 All required fields in the Driver business object
4.2.4 Creating the event
Next, you create the business event that is received from CICS. The event contains an event
object that stores the information that is required to populate the business objects.
Request_data event object: When emitting events from CICS, you can have only one
event object in which all the data fields are stored. This event object is called
Request_Data. This limitation means that the fields for both the driver and the vehicle are
placed in the Request_Data event object and then mapped to the correct fields of the
necessary business object.