onActivation element

The <onActivation> element specifies the action or set of actions to take when the rule is activated. The <onActivation> action is called after the rule is activated but before the rule begins any processing.

Details

If the rule set contains multiple rules that are activated at the same date and time, or by the same event, and that have the same time window, the following actions for these rules do not run at exactly the same time:
  • Rule response actions within the <onTimeOut> and <onTimeWindowComplete> elements
  • Life cycle actions within the <onActivation> and <onDeactivation> elements
These actions run sequentially in any order. They do not necessarily run in the order in which they are coded in the rule set. Because each action must be completed before the next action in the sequence begins, the actions do not run at the same time.

Attributes

<onActivation> has no attributes.

Contained within

<onActivation> is contained within the following element:

Contains

<onActivation> contains the following element:

Table 1. Elements contained within the <onActivation> element
Element Required or optional?
<action> Optional. 0 or more occurrences are allowed.