IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Monitoring events > Generate event definitions
Generate event definitions
In IBM Integration Designer, you can only use the event definition generator to generate or regenerate event definitions if you have selected the WebSphere Business Monitor 6.0.2 event generation format. If you have accepted the default WebSphere Business Monitor 7.0 event generation format, then the event definition generator is not available.
Before you can generate event definitions for predefined events, first select the predefined events in the event monitor as described in the event monitor topics "Specifying event properties for component elements" and "Specifying event properties for components." Similarly, if you want to generate event definitions for custom events in a mediation flow, first add custom event emitters in your mediation flow as described in the mediation flow editor topic "Emitting common base events."
To generate event definitions:
Procedure
- In the Business Integration view, expand your module and navigate to the component for which you want to generate event definitions. You can generate event definitions for the following four components:
- Business processes
- Human tasks
- Assembly diagrams
- Mediation flows
- Right-click the component and select Generate Event Definition. In the Physical Resources view of the Business Integration perspective, the event definitions are generated (or regenerated) into the events folder under your module. If that if you have accepted the default option to have your events generated in WebSphere Business Monitor 6.2 format and you have installed the IBM Business Monitor development toolkit, you can alternatively right-click your module and select Generate Monitor Model. This will generate a monitor model into the Project Explorer view of the Business Monitoring perspective. Information about selecting an event generation format is found in the topic "Specifying event properties for components." Information about generating a monitor model is found in the IBM Business Monitor development toolkit documentation.
Results
If that if you have a business object with an attribute name that exceeds 64 characters in length, the generated event definition and the emitted event in the runtime environment will truncate the extended data element name to the first 64 characters.For example, in the following extended data element, any name that exceeds 64 characters in the name argument would be truncated to 64 characters:
<extendedDataElement maxOccurs="1" minOccurs="1" name=" MyVeryLongAttributeName" type="string"/>
This behavior is defined by the Common Base Event specification.
What to do next
After you have generated your event definitions, you can perform one or more of the following tasks:
- Edit the event definitions in the event definition editor, as described in the event definition editor topic "Editing event definitions."
- Test the event definitions in the integration test client, as described in the integration test client topic "Testing event definitions."
- Import the event definitions into a monitor model in the monitor model editor and add business metrics to the event definitions, as described in the IBM Business Monitor development toolkit documentation.