Apama Documentation : Developing Apama Applications : Developing Apama Applications in EPL : Defining Event Listeners : Specifying and/or/not logic in event listeners : Specifying the 'and' operator in event expressions
Specifying the 'and' operator in event expressions
The and operator specifies an event pattern that might occur in any temporal order. It evaluates two event templates (or nested event expressions) simultaneously but only returns true when they are both true.
on A() and B() executeAction();
This will seek ‘an A followed by a B' or ‘a B followed by an A'. Both are valid matching patterns, and the event listener will seek both concurrently. However, the first to occur will terminate all monitoring and cause the event listener to trigger.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback