Initialized Attributes

The Initialization block contains one or more Attribute statements, each specifying the attribute's type, but not specifying any derivation.

Whenever a rule object instance of the class is created, whether within rules by use of the create expression or via Java code using the generated rule classes or the dynamic rule API, the values of all the initialized attributes must be specified in the order that they are defined in the rule class.

warning: As such, you should avoid re-ordering the attributes in an Initialization block unless you are prepared to also update all places (in rules or Java code) which create rule object instances of the rule class.