Adding a when part
A rule agent can process a specific event immediately upon its arrival into the system, or after a delay.
To process an event, you must have knowledge about the event that happens and the business impact of that event. In particular, which entity the event affects. It is also useful to know of past events, and possibly future events that are related to that entity.
When processing incoming events, an agent can update the state of the entity through rules. A rule defines the action to be taken when an agent receives an event, or after a specified delay. In the rule, you define the event and the conditions upon which the rule is executed. Then, you specify the actions to take when the event happens and all of the conditions are met.