Spezielle Verwaltung > Geschäftsobjekte anpassen > Objektinitialisierungsregel-Verwaltung > Understanding Object Initialization Rules > Defining the Content of XML Documents used for Object Initialization Rules > Examples of Algorithms Used with AttrValue > Default Life Cycle Example using the LifeCycleTemplateAttributeAlgorithm
  
Default Life Cycle Example using the LifeCycleTemplateAttributeAlgorithm
The following example shows the out-of-the-box XML that sets the default life cycle template to the localized key of "BASIC_LIFECYCLE_NAME" (which is Basic in English) for a document. The locale used to determine what is displayed is the locale set on the server (not the locale set on the client).
This example is formatted to fit the page. Always enter each tag on one line:
<AttributeValues objType="wt.doc.WTDocument">
<!-- set the lifecycle -->
<AttrValue id="lifeCycle.id" algorithm=
"com.ptc.core.foundation.lifecycle.server.impl.LifeCycleTemplateAttributeAlgorithm">

<Arg>
<!-- Translation of the word "Basic" must be the same as the translation -->
<!-- done in commonLifeCycles.xml -->
<?loc-begin key="BASIC_LIFECYCLE_NAME" maxlen="30"?>Basic<?loc-end?>
</Arg>
</AttrValue>
</AttributeValues>