Developing Apama Applications > Developing Apama Applications in EPL > Common EPL Patterns > Inline request-response pattern
Inline request-response pattern
You can use the route command 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 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.