Specialized Administration > Tailoring Business Objects > Object Initialization Rules Administration > Working with Object Initialization Rules > Specifying Rules > Optional AttrValue, AttrConstraint, and VarDef Attributes > Final XML Attribute
  
Final XML Attribute
The final attribute identifies whether the object attribute value specified is the absolute value to use in the composite rule that is formed by merging rules from the associated contexts.
You can specify either final="true" or final="false", where the default is false.
Specifying final="true" indicates that, when the composite rule is formed, the attribute value, constraint, or variable definition defined in the rule where final="true" is specified is used instead of using the attribute value of the child rule. For example, assume that the following rule is set in the site context:
<AttributeValues objType="wt.doc.WTDocument">
<AttrValue id="folder.id"
algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm" final="true">
<Arg>/Default</Arg>
</AttrValue>
</AttributeValues>
Also assume that the following rule is set in a product context (which is a child of the site context):
<AttributeValues objType="wt.doc.WTDocument">
<AttrValue id="folder.id"
algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm">
<Arg>/Default/ProdDefault</Arg>
</AttrValue>
</AttributeValues>
Because final="true" in the site context rule, the composite rule in the product context uses a folder path of /Default (set in the site context) and not /Default/ProdDefault (set in the product context) when creating documents.
If final="true" is specified in multiple rules for the same object type and attribute, the parent rule takes precedence in the composite rule.
Specifying final="false" has no effect on the composite rule.