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.
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.