WSO2 Complex Event Processor is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

Versions Compared

Key

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

...

  1. Access the Analytics Dashboard using the following URL.
    https://localhost:9443/portal/ 
  2. Access the the following page.
    https://localhost:9443/portal/outputuitest/index.jag 

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

    enter details in the Web appImage Added


    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 application.org.wso2.event.sensor.stream
    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
    Mode

    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.

    Info

    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.

    WEBSOCKET
    Polling Interval

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

    Info

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

    30
  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.
    Image Added

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

 

  1. ols, and then click Event Simulator.
  2. Access the Web app which you deployed in Prerequisites via your Web browser using the following URL:  http://localhost:9763/outputuitest/
  3. Enter  the following details in the Web app as shown below.

    enter details in the Web appImage Removed

      • Stream Name: org.wso2.event.sensor.stream

      • Version: 1.0.0

      • CEP Host: localhost

      • CEP Port: 9763

      • Polling Interval: 30

      • Domain: carbon.super

      • Mode: WEBSOCKET

      • Secure level: UNSECURED

  4. Click Connect.

  5. 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.
    Image Removed
    You view the output events published from the CEP which are received by the Web app as shown below.

    published events received by the Web app