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:lc -> OneTimePass:otp
where lc.user = otp.user
within 30.0 {
emit AccessGranted(lc.user);
}
Copyright © 2013-2015 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.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.