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
email
Receiver
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 [email protected] 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.
Overview
Content Tools
Activity