In a monitor, when the correlator detects a matching event, it triggers the action defined by the listener for that event. This section discusses what you can specify in the triggered actions.
In a query, when a match set is found, it triggers execution of the procedural code block in the
find statement. A subset of the EPL constructs that are available in a monitor are available in a query. See
Restrictions in queries to understand what is not allowed in a query.