The Publish Event mediator constructs events and publishes them to different systems such as BAM and CEP. This is done via event sinks.
Info |
---|
The Publish Event mediator is a content-aware mediator. |
...
Syntax
Code Block | ||
---|---|---|
| ||
<publishEvent> <eventSink>String</eventSink> <streamName>String</streamName> <streamVersion>String</streamVersion> <attributes> <meta> <attribute name="string" type="dataType" default="" (value="literal" | expression="[XPath") /> </meta> <correlation> <attribute name="string" type="dataType" default="" (value="literal" | expression="[XPath") /> </correlation> <payload> <attribute name="string" type="dataType" default="" (value="literal" | expression="[XPath") /> </payload> <arbitrary> <attribute name="string" type="dataType" default="" value="literal" /> </arbitrary> </attributes> </publishEvent> |
...
UI Configuration
Parameters that can be configured for the Publish Event mediator are as follows.
...
In this configuration, the Publish Event mediator uses four attributes to extract information from the ESB. This information is published in an event sink in the ESB named bamsample_event_sink
.
Code Block | ||
---|---|---|
| ||
<publishEvent> <eventSink>bam<eventSink>sample_event_sink</eventSink> <streamName>stream_88</streamName> <streamVersion>1.1.2</streamVersion> <attributes> <meta> <attribute name="http_method" type="STRING" defaultValue="" expression="get-property('axis2', 'HTTP_METHOD')"/> <attribute name="destination" type="STRING" defaultValue="" expression="get-property('To')"/> </meta> <correlation> <attribute name="date" type="STRING" defaultValue="" expression="get-property('SYSTEM_DATE')"/> </correlation> <payload> <attribute xmlns:m0="http://services.samples" name="symbol" type="STRING" defaultValue="" expression="$body/m0:getQuote/m0:request/m0:symbol"/> </payload> </attributes> </publishEvent> |