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 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.