Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Excerpt
hiddentrue

Siddhi Event Definitions in wiki format

Info
titleInfo

When using WSO2 CEP we don't need to define the Siddhi streams in an execution plan, this is because WSO2 CEP will infer the Siddhi stream definitions definition from the Input Mappingscorresponding stream definitions of CEP.


<define-stream> ::= define stream <stream-name>
<attribute-name> <type> {<attribute-name> <type>}

...

Following example shows a sample stream definition;

Defining a stream called StockExchangeStream having three attributes, where symbol of type string, price of type float and volume of type int.

define stream StockExchangeStream (symbol string, price float, volume int );

...