Events are the lifeline of WSO2 CEP/DAS. They not only process data as events, but also interact with external systems using events. Event is a unit of data, and an event stream is a sequence of events of a particular type. The type of events can be defined as an event stream definition. The following sections explain how to work with events in WSO2 CEP.
...
Property | Description |
---|---|
Event Stream Name | Name of the event stream. |
Event Stream Version | Version of the event stream. (Default value is 1.0.0.) |
Event Stream Description | Description of the events stream. (This is optional.) |
Event Stream Nick-Name | Nick-names of an event streams separated by commas. (This is optional.) |
Stream Attributes | Stream Attributes contains the data of the event. These are divided into three logical separations to give more usability and maintenance to the user. It is not mandatory to have attributes in all three sections, but there should be at least one section with at least one attribute defined. Also attribute names should be unique within each section.
It is recommended to have logistic separation but the internal system does not differentiate or give privilege based on above separations. Also Please please note if you edit and add another attribute to existing stream definition, other artifacts which are associated with the stream will be inactive. So that it is recommended to create a new stream definition and with a version with including the additional attribute. For example consider following attributes which exist in a single event. event_timestamp, request_IP_address, correlation_Id, price, symbol with there corresponding data types. We can logically separate the above attributes as following.
|
Adding an event stream AnchorAdd Add
Add | |
Add |
...