Apama 10.7.2 | Developing Apama Applications | EPL Reference | Queries | Find statement | Within condition
 
Within condition
In a find statement, a within clause sets the time period during which all events in the match set or some events in the match set must have been added to their windows.
A pattern can specify zero, one, or more within clauses. These must appear after any find where clauses and before any without clauses.
Specify the within keyword followed by a float expression or a time literal, which indicates the time period during which the events in the match set must be received.
Optionally, specify a between clause to indicate that the time constraint applies to only some of the events in the match set. See Between clause.
Example:
find LoggedIn as lc -> OneTimePass as otp
where lc.user = otp.user
within 30.0 {
emit AccessGranted(lc.user);
}