Versions Compared

Key

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

This will convert the WSO2Event Event Builder converts events/streams from an Input Adaptor input adaptor that supports WSO2-Events into an event stream that is compatible with the Event Processor event processor. WSO2-Event has three data types (Metameta, Correlation correlation and Payloadpayload), which can be mapped to the CEP back-end backend runtime event attributes by specifying the mapping in the event builder. 

 

Configuring through the Management Console UI

1. You can configure through the management console as explained below or by manually adding an XML file as explained in step 7.

 

  1. Log in to the CEP management console

...

Image Removed

2. The Create a New Event Builder window opens, using which you can configure new event builders. Enter the following details in the form to create an WSO2-Event based event builder as shown in the screenshot below.

Image Removed

In this UI, there are several properties that need to be filled when creating an event builder. The user interface is divided in to 3 main components (From, Mapping and To) and all properties come under a specific section (except the event builder name) to make it more understandable.

...

  1. , select Event Builders and click Add Event Builder.
  2. Enter details in the form that appears and click the Add Event Builder button at the end of the form. For example,Image Added

The fields in the above configuration are as follows:

  • Event Builder Name : Property to uniquely identify a event formatter configuration.
  • Input Transport Event Adaptor - The Input Transport Adaptor which you are going to use : The input event adaptor used to publish the events to the CEP. Only already created Input Transport Adaptors will be listed here. Select the appropriate adaptor by name from the drop down. It is numbered as "1".Input Transport Adaptor properties - These properties will be need by the input transport adaptor and will depend on the selected input transport adaptor type. It is numbered as "2". For WSO2Event based input transport adaptors the properties needed are,This drop-down list only displays the adaptors that are already created.
  • Input Event Adaptor properties : Properties required by the input event adaptor depending on the input event adaptor type selected before. For example, if you select WSO2Event based input event adaptor, then the required properties are as follows:
    • Stream Definition - The stream name of the incoming WSO2Event stream
    • Stream Version - The version of the incoming stream
  • Input Mapping Type - : This property will change changes based on the transport event adaptor selected. Only It lists only the mapping types supported by a particular transport event adaptor will be listed. Select the required mapping type from the list. In the WSO2Event mapping case, it will be 'wso2event'. It is numbered as "3" . For example, if you select WSO2Event mapping as the adaptor type, then the mapping type will be wso2event.
  • WSO2Event mapping properties - These properties will map the incoming stream to the outgoing stream which will be received by the Event Processor. It is numbered as "4". For WSO2Event mapping, it will be further divided into three subsections as Meta Data, Correlation Data and Payload Data. You need to map an incoming stream attribute to an outgoing stream attribute by providing the necessary details in the relevant input fields. For example, to add a mapping to payload data attribute, go to the row for adding a payload data and
    • Enter the attribute name of the incoming stream in Input Attribute Name
    • Enter the attribute name for the outgoing stream in Mapped To
    • Select the data type of the attribute from the To Stream Data Type drop down
    • Click Add to add the individual attribute mapping to the event builder
  • To Stream Name - This will be the stream name of the outgoing stream
  • To Stream Version - The version of the outgoing stream
3. After adding the relevant details click the Add Event Builder button. The Available Event Builders page will open. To view event builder configurations, click on the event builder name. To delete an event builder, click the Delete button.


Editing Event Builder Configuration through the Management Console

...