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.
The following example shows an Event Emitter used to notify that an unusual path has been executed in a flow.