collectionRule element

The <collectionRule> element defines a rule according to the collection pattern.

Attributes

<collectionRule> has the following attributes:

Table 1. Attributes of the <collectionRule> element
Name Description Data type Required?
name Identifies the rule. This identifier must be unique within the rule block that contains this rule. It cannot contain a period. xsd:NMTOKEN Yes
processOnlyForwardedEvents Determines whether the rule receives all events or only events that are forwarded from other rules. The default value is false, which indicates that the rule receives all events, including those that are forwarded from other rules. xsd:boolean No

Contained within

<collectionRule> is contained within the following element:

Contains

<collectionRule> 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 2. Elements contained within the <collectionRule> element
Element Required or optional?
<comment> Optional. 0 or 1 occurrence is allowed.
<variable> Optional. 0 or more occurrences are allowed.
<activationInterval> Optional. 0 or 1 occurrence is allowed.
<lifeCycleActions> Optional. 0 or 1 occurrence is allowed.
<eventSelector> Optional. 0 or 1 occurrence is allowed.
<groupingKey> Optional. 0 or 1 occurrence is allowed.
<timeWindow> Required. Only 1 occurrence is allowed.
<onTimeWindowComplete> Optional. 0 or 1 occurrence is allowed.
Related concepts
Collection pattern