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.
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
Loads the events stored in the
<CEP_HOME>/samples/cep/artifacts/0071/eventsimulatorfiles/events.csvfile 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.
- Log in to the management console.
- Click Tools, and then click Event Simulator.
- Access the Web app which you deployed in Prerequisites via your Web browser using the following URL: http://localhost:9763/outputuitest/
Enter the following details in the Web app as shown below.
Stream Name: org.wso2.event.sensor.stream
CEP Host: localhost
CEP Port: 9763
Polling Interval: 30
Secure level: UNSECURED
Click Play on the corresponding event stream as shown below, to send the events in the
<CEP_HOME>/samples/cep/artifacts/0071/eventsimulatorfiles/events.csvfile to the publisher.
You view the output events published from the CEP which are received by the Web app as shown below.