Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This will convert the events which coming from Siddhi in to Map Events according to the output mapping configurations. Here each output event is considered as a map object.

 

Configuring through the Management Console UI

1. Log in to the CEP management console and select the Main menu in the left hand side of the screen. Then select the Add menu item under Event Formatter menu.

...

  • Event Formatter Name - Property that used to uniquely identify a event formatter configuration.
  • Event Stream - Can select a event stream (Stream name with version) where you going to listen for events, It is numbered as "1".
  • Stream Attributes - Based on the event stream selected, It shows what are the attributes available at that stream. (It is only for reference when creating output mapping)
  • Output Transport Adaptor Name - Transport adaptor which you going to use to publish the events from CEP. (Output Transport Adaptors which are created are listed here). It is numbered as "2". Based on the Transport Adaptor that selected sections "3", "4" and "5" will change accordingly.
  • Output Mapping Type - This property can be change based on the transport adaptor selected. Some transport adaptors can support for multiple types of mappings. User can select the required mapping type from the list. Is is numbered as "3".
  • Destination - Since, you have selected JMS type transport adaptor "jmsTransportAdaptor"; you need Destination to send events from CEP. 

Map Mapping

Map event is simply as map object, that means a <key,value> pair. Here "Name" is used as a key in the event and actual value is used as value attribute.

...

By Clicking the Edit button of the relevant event formatter, you will able to edit the event formatter configuration and redeploy it. When you click the Edit button, it will redirect to a xml based editor window which allow you to edit the event formatter configuration from UI without opening the configuration file in the file system.

Configuring through a xml File

You can specify a event formatter configuration through in a xml file and deploy it in the deployment directory in the server. Event Formatter deployment directory is available at <CARBON_HOME>/repository/deployment/server/eventformatters . This is an hot deployment directory, then it is easy to deploy and undeploy an event formatter configuration.

...