...
...
...
...
Excerpt | ||
---|---|---|
| ||
Siddhi Event Definitions in wiki format |
Info | ||
---|---|---|
| ||
When using WSO2 CEP we don't need to define the streams, this is because WSO2 CEP will infer the stream definitions from the Input Mappings. |
<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 int float and volume of type floatint.
define stream StockExchangeStream (symbol string, price intfloat, volume float int );