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
- An event receiver named
Receiverto fetch events from the configured receiver email address
- An event publisher named
emailEventLoggerto log the received messages
Executing the sample
Send an email to email@example.com address, with the subject of it as cep. Enter the below content as the body of the email in plain text format.
You view the CEP server receiving the email events in the logs of it in the CLI as shown below.