Developing Apama Applications > Developing Apama Applications in Java > Defining Event Expressions
Defining Event Expressions
Consider this code snippet from the previous example:
public void onLoad() {
   EventExpression eventExpr =
     new EventExpression("Tick(*, >10.0)");
   eventExpr.addMatchListener(this);
}
The highlighted code is creating an event expression, and embeds the following event expression definition string:
Tick(*, >10.0)
This is the simplest form of an event expression; specifically it contains a single event template.
In this case the event expression is specifying “the first Tick event whose price parameter contains a value greater than 10.0”.
EPL - If you are already familiar with EPL, the syntax for writing JMon event expressions is the same as for EPL event expressions.
Copyright © 2013-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.