Пример кода
Обновленные правила инициализации объектов (OIR) в файле ChangeMgmtInitRules.xml:
Шаблон извещения об изменении или задания
Обычное извещение об изменении или задание на изменение
Шаблон жизненного цикла
Базовый
Жизненный цикл извещения об изменении
Обозначение
10-разрядное число
5-разрядное число
<!-- set the lifecycle -->
<AttrValue id="lifeCycle.id" algorithm="com.ptc.core.foundation.lifecycle.server.impl.LifeCycleTemplateAttributeAlgorithm">
<!-- if (template.templated) -->
<Value algorithm="wt.rule.algorithm.BooleanBranch">
<!-- test this value -->
<Attr id="template.templated"/>
<!-- if true -->
<Arg>Basic</Arg>
<!-- if false -->
<Arg>Change Notice Life Cycle</Arg>
</Value>
</AttrValue>
<!-- set the number to a generated number -->
<AttrValue id="number" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">
<!-- if (template.templated) -->
<Value algorithm="wt.rule.algorithm.BooleanBranch">
<!-- test this value -->
<Attr id="template.templated"/>
<!-- if true -->
<Arg>{GEN:wt.enterprise.SequenceGenerator:WTCHANGEORDERID_seq:10:0} </Arg>
<!-- if false -->
<Arg>{GEN:wt.enterprise.SequenceGenerator:WTCHANGEORDERID_seq:5:0} </Arg>
</Value>
</AttrValue>
Примеры использования в коде Windchill
<Windchill>/loadFiles/pdmlink/ChangeMgmtInitRules.xml
Было ли это полезно?