WSO2 Complex Event Processor is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.
Skip to end of metadata
Go to start of metadata


This sample demonstrates the usage of the UI publisher using a client app. This sample does not have Siddhi queries because it does not not use any execution plans. 


 Set up the prerequisites required for all samples

Building the sample 

Start the WSO2 CEP server with the sample configuration numbered 0071. For instructions, see Starting sample CEP configurations. This sample configuration does the following.

  • Creates an event stream named

  • Creates an event publisher named uiPublisher.

  • Loads the events stored in the <CEP_HOME>/samples/cep/artifacts/0071/eventsimulatorfiles/events.csv file to the event simulator.

  • Deploys a Jaggery application named outputuitest. This application functions as the client that consumes the events published by the UI publisher.

Executing the sample

Follow the steps below to execute the sample.

  1. Access the Analytics Dashboard using the following URL.
  2. Access the the following page.

    This opens the following form with the fields filled in with default values as shown below.

    The fields in the form are described in the table below.

    Field NameDescriptionDefault Value
    Stream NameThe name of the event stream to which you want to subscribe. When events with values for the attributes defined in this stream are received by the Output Adapter UI test
    VersionThe version of the event stream to which you want to subscribe.1.0.0
    CEP HostThe host on which the CEP server (which contains the UI publisher) runs.localhost
    CEP PortThe port on which the CEP server (which contains the UI publisher) runs.9443

    UI publisher supports two types of subscriptions named Websocket and HTTP. If you select Websocket for this field, the client application receives events via the Websocket transport. If you select HTTP for this field, the client application receives events via the HTTP transport.

    When the HTTP subscription is used, the events are polled from the UI publisher at a constant interval, and this interval needs to be specified in the Polling Interval field.

    Polling Interval

    The time interval at which events should be polled from the UI publisher. This time interval is specified in seconds.

    This field value is only applicable is the value specified in the Mode field is HTTP.

  3. Click Connect. Now the client app is ready to receive events. Next step is sending events so the UI publisher receives them and publishes them to the client application.
  4. Log into the WSO2 CEP Management Console.
  5. In the Tools tab, click Event Simulator.
  6. Click Play on the corresponding event stream as shown below to send the events in the <CEP_HOME>/samples/cep/artifacts/0071/eventsimulatorfiles/events.csv file to the publisher.

    The output events published from WSO2 CEP and received by the client Jaggery application  are logged as follows.



  • No labels