Versions Compared

Key

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

...

  1. Log in to the CEP management console, click Tools, and then click Siddhi Try It as shown below.
    Tools menu
  2. Enter the Execution Plan as shown in the below example. 
    sample execution planThe main elements of the an execution plan that should be defined are described below. 

    ElementDescriptionExample
    Execution plan nameThe name of the execution plan. It can contain only alphanumeric characters and '_' character.TestExecutionPlan
    Input streamThe mappings between the available event stream and the input stream of the Siddhi runtime, which is defined inside the query expressions.sensorStream
    Query expressionsThe event processing logic written in SiddhiQLSiddhi QL. When defining more than one query, end each query with a semicolon. Defining a query name (e.g. query1) is optional.

    @info(name = 'query1') 

    from sensorStream[temperature>98.6] 

    select sensorId

    insert into outputStream;

    Output streamThe mappings between the output stream of the Siddhi runtime and one of the available event streams, which are is defined inside the query expressions.outputStream
  3. Enter a time stamp to begin the process of sending events for Begin Time if required.

  4. Enter the Event Stream

     as

    , which is a logical series of events ordered based on the time as shown in the below example.

     


    Image Modified


    The main elements of the event stream that should be defined are described below.

     

     

     
    ElementDescriptionExample
       
       
     

     

     

     

  5. Click Submit.