Apama 10.7.2 | Developing Apama Applications | Developing Apama Applications in EPL | Defining Event Listeners | Defining event expressions with one event template | Listening for one event
 
Listening for one event
Consider the following on statement:
on StockTick() processTick();
This event listener is watching for one StockTick event. The values of the StockTick event's fields are irrelevent, as indicated by the empty parentheses. When this event listener finds a StockTick event, it triggers and terminates. When the event listener triggers, it causes the correlator to execute the processTick() action.