Publish Event Mediator

publishEvent mediator can be used to construct an event and publish the event to a different system such as BAM or CEP. An event consists of three separate sections of data attributes, namely meta, correlation and payload. Event can be constructed with desired data attributes. Values for data attributes can be extracted from message and message context. XPaths and XPath extension function get-property() can be used for extracting data from message and message context.


Figure1: publishEvent Mediator

Configuring publishEvent mediator

Adding attributes

You can add new attributes to meta, correlation and payload sections using the "Add Attribute" button in each section. Attribute configuration is similar to the configuration of property mediator.

Note: If a new attribute is added, existing attribute is deleted or a change to any attribute is made (Value/Expression changes are not considered), either Stream Name or Stream Version should also be changed