Apama 10.7.2 | Developing Apama Applications | Developing Apama Applications in Java | Defining Event Expressions | About event templates | Specifying completed event templates
 
Specifying completed event templates
In some situations, you want to ensure that the correlator completes all work related to a particular event before your application performs some other work. In your event template, specify the completed keyword to accomplish this. For example:
on all completed A(f < 10.0) {}
When an event that matches the template comes into the correlator, the correlator
1. Runs all of the event's normal and unmatched listeners.
2. Processes all routed events that result from those listeners.
3. Calls the completed listeners.