Developing Apama Applications > 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 an 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 for monitors.
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.
In Apama queries, route statements are not allowed.
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.