Developing Apama Applications > Apama EPL Reference > Statements > Simple statements > The route statement
The route statement
The route statement evaluates the expression and then sends the resulting event to the front of the current context’s input queue.
RouteStatement
The expression’s result type must be event. The event is processed only within the same context that executes the route statement.
Routed events are put on the input queue, ahead of any externally sourced events, and ahead of any previously routed events that have not yet been processed. For more details, see Event processing order.
The isExternal() method returns false for routed events.
You cannot route an event whose type is defined in a monitor. You cannot route an event that has a field of type action, chunk, listener, or stream.
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.