This documentation is for WSO2 CEP 3.0.0. View the home page of the latest release.

Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Info

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 definition from the corresponding stream definitions of CEP.


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

All streams that cannot be derived from queries must be defined before use.

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 );

 

  • No labels