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

Prerequisites

Set up the prerequisites required for all samples.

Building the sample 

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

  • An event stream with the ID org.wso2.event.sensor.stream_1.0.0
  • An event receiver named emailReceiver to fetch events from the configured receiver email address 
  • An event publisher named emailEventLogger to log the received messages

Executing the sample

Send an email to cep2015test@gmail.com address, with the subject of it as cep. Enter the below content as the body of the email in plain text format.

meta_timestamp:19900813115534,
meta_isPowerSaverEnabled:false,
meta_sensorId:601,
meta_sensorName:temperature,
correlation_longitude:90.34344,
correlation_latitude:20.44345,
humidity:2.3,
sensorValue:20.44345

You view the CEP server receiving the email events in the logs of it in the CLI as shown below.

email events received by the WSO2 CEP server

  • No labels