lifeCycleActions element

The <lifeCycleActions> element contains elements that define the actions to take at the four primary stages in the life cycle of a rule.

Details

The actions that are defined for the load and activation stages are called after the rule is actually loaded or activated but before the rule begins any processing. The actions that are defined for the deactivation and unload stages are called immediately before the rule is actually deactivated or unloaded.

Attributes

<lifeCycleActions> has no attributes.

Contained within

<lifeCycleActions> is contained within the following elements:

Contains

<lifeCycleActions> contains the following elements.

The elements must be coded in the order that is shown. If an element is optional, it does not need to be coded, but all elements that are coded must follow the correct order.

Table 1. Elements contained within the <lifeCycleActions> element
Element Required or optional?
<onLoad> Optional. 0 or 1 occurrence is allowed.
<onActivation> Optional. 0 or 1 occurrence is allowed.
<onDeactivation> Optional. 0 or 1 occurrence is allowed.
<onUnload> Optional. 0 or 1 occurrence is allowed.