Specialized Administration > Tailoring Business Objects > Object Initialization Rules Administration > Working with Object Initialization Rules > Rule Algorithms > General Default Value and Constraint Algorithm Examples > Example of Pregenerated Text
  
Example of Pregenerated Text
The following example shows the XML that you could nest in the AttributeValues tag for the wt.doc.WTDocument object type to display the pregenerated default document number and allow the user to edit the field:
<AttrConstraint id="number"
algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue"/>
</AttrConstraint>