Defining event parts
An event part is an XML Schema Definition (XSD) type that provides information about the structure of part of an event. A single event definition can have different event parts that are defined by different XML schemas. Each event part describes how to identify and locate itself within the actual event received at run time.
About this task
Consider this event XML:
<wbe:monitor-event xmlns:wbe="http://www.ibm.com/xmlns/prod/websphere/businessEvents/6.1.0">
<wbe:connector-info>
<wbe:name>CreateAccount</wbe:name>
<wbe:version>1.0</wbe:version>
<wbe:system>SVT</wbe:system>
<wbe:log-info>CC Account Creation Event</wbe:log-info>
</wbe:connector-info>
</wbe:monitor-event>
If you define an event part with
the ID connectorPart, the corresponding event part
path is wbe:monitor-event/wbe:connector-info. <eventPart displayName="connectorPart" id="connectorPart"
path="wbe:monitor-event/wbe:connector-info" type="wbe:monitor-event"></eventPart>
Content Assist provides a tree of elements inside an event part path that can be used in the monitor model for metric values, metric calculations, trigger conditions, and so on. For example, if you use Content Assist for wbe:connector-info in the previous example, you see the version, system, and log-info information.
Procedure
To define an event part, complete the following steps:
Results
Event parts are also shown under the inbound and outbound event in content assist.