Best Practices: When to use an Event Emitter

The Event Emitter primitive provides a way to generate significant business events from within a mediation flow.

Think of an Event Emitter as a notification mechanism that is used to indicate an unusual event, such as a significant failure within a flow or an unusual path executed in the flow. Avoid placing an Event Emitter in the normal execution path of a flow as this could affect performance by causing a large number of events to be generated.

In the following flow, an Event Emitter is used when there is a failure in the message log, which is a significant failure in the flow.

Notification of failure flow

The following example shows an Event Emitter used to notify that an unusual path has been executed in a flow.

Notification of unusual branch execution

Related concepts
The Common Event Infrastructure and Common Base Events
Best Practice: Choosing properties of an event
When not to use an Event Emitter
Related tasks
Generating event definitions
Generating a monitor model
Related reference
Content of the Event Emitter primitive's event
Event Emitter mediation primitive

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.