高度なカスタマイズ > ビジネスロジックのカスタマイズ > ライフサイクル管理のカスタマイズ > カスタマイズされた状態ベースのバージョン化スキームの設定 > オブジェクト初期化規則の設定
  
オブジェクト初期化規則の設定
オブジェクト初期化規則を設定し、新規に作成されたライフサイクルにオブジェクトを関連付け、シードが定義される StateBased バージョン化スキームを取得します。
以下の例は、WTPart 用に修正された初期化規則を示しています。
<AttributeValues objType="wt.part.WTPart">
<!-- set the folder -->
<AttrValue id="folder.id"
algorithm="com.ptc.core.foundation.folder.server.impl.
FolderPathAttributeAlgorithm">
<Arg>/Default</Arg>
</AttrValue>
<!-- set the lifecycle -->
<AttrValue id="lifeCycle.id"
algorithm="com.ptc.core.foundation.lifecycle.server.impl.LifeCycleTemplate
Attribute
Algorithm">
<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>

<!-- set the team template -->
<AttrValue id="teamTemplate.id"
algorithm="com.ptc.core.foundation.team.server.impl.TeamTemplateAttributeAl
gorithm"
>
<Arg>Default</Arg>
</AttrValue>
<!-- set the number to a generated number -->
<AttrValue id="number"
algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.Number
Genera
tor">
<!-- add a V prefix for variant parts -->
<Value algorithm="wt.rule.algorithm.BooleanBranch">
<Value algorithm="wt.rule.algorithm.EqualsTest">
<Attr id="genericType"/>
<Arg>variant</Arg>
</Value>
<Arg>V</Arg>
<Arg></Arg>
</Value>
<!-- the sequence -->
<Arg>{GEN:wt.enterprise.SequenceGenerator:WTPARTID_seq:10:0}</Arg>
</AttrValue>
<!-- set the version info to a generated version info -->
<AttrValue id="MBA|versionInfo"
algorithm="com.ptc.core.foundation.vc.server.impl.VersionInfoGenerator">
<Arg>wt.series.HarvardSeries</Arg>
</AttrValue>
</AttributeValues>
* 
この規則がサイトレベルまたは組織レベルで定義される場合、コンテキストレベルで定義されたオブジェクト初期化規則を無効化する必要があります。