Apama 10.15.0 | Developing Apama Applications | Developing Apama Applications in Java | Defining Event Expressions
 
Defining Event Expressions
 
About event templates
Specifying parameter constraints in event templates
Obtaining matching events
Emitting, routing, and enqueuing events
Specifying temporal sequencing
Defining advanced event expressions
Optimizing event expressions
Validation of 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.
If you are already familiar with EPL, the syntax for writing JMon event expressions is the same as for EPL event expressions.