Apama 10.3 | Apama Documentation | Developing Apama Applications | Developing Apama Applications in EPL | Common EPL Patterns in Monitors | Inline request-response pattern
Inline request-response pattern
Routing events for request-response behavior
Canonical form for synchronous requests
You can use the route statement to write EPL that exhibits inline (synchronous) request-response behavior. The following example shows that when you want to perform an ordered pattern of operations that contain (as one operation) a request to another monitor, the subsequent operations must wait until the requesting monitor receives the response.
The ordering of the route and on statements is not relevant. The correlator sets up the event listener before processing the routed event.
A common mistake is to place code after the on statement code block and expect that code to execute after the code in the on statement code block.

Copyright © 2013-2018 | 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.