专业化管理 > 配置您的 Windchill 环境 > 业务规则 > 可用业务规则 > 发布目标规则
  
发布目标规则
此业务规则可确保所有产生的对象均处于相应的发布状态,并且均已指定了与分配生命周期转变规则一致的相应更改管理转变。如果用户所选转变未针对当前产生的对象转变进行定义,则规则将失败。
产生的对象中任何与发布计划相关的未定义更改进程转变值均假定为“更改”转变及其定义的状态。如果产生的对象未定义更改进程转变,则规则将失败。如果产生的对象未定义更改进程转变,但已处于更改进程转变所指定的发布目标状态,则将通过规则。
有关转变的详细信息,请参阅定义状态转变
示例
下列 XML 示例定义了执行“发布目标”规则的业务规则对象集。
业务规则设置:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BusinessRuleSet SYSTEM "standardX20.dtd">
<BusinessRuleSet>
<ObjectID><localId>wt.businessRules.BusinessRuleSet:45346</localId>
</ObjectID>
<key>CHANGEABLE_PRE_RELEASE</key>
<name>com.ptc.windchill.enterprise.change2.change2ClientResource:
CHANGE_PRE_RELEASE_RULESET_NAME</name>
<description>com.ptc.windchill.enterprise.change2.change2ClientResource:
CHANGE_PRE_RELEASE_RULESET_DESC</description>
<enabled>true</enabled>
<overridable>true</overridable>
</BusinessRuleSet>
业务规则:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BusinessRule SYSTEM "standardX20.dtd">
<BusinessRule>
<ObjectID><localId>wt.businessRules.BusinessRule:151031</localId>
</ObjectID>
<key>RELEASE_TARGET</key>
<selector>RELEASE_TARGET</selector>
<name>com.ptc.windchill.enterprise.change2.change2ClientResource:
RELEASE_TARGET_RULE_NAME</name>
<description>com.ptc.windchill.enterprise.change2.change2ClientResource:
RELEASE_TARGET_RULE_DESC</description>
<enabled>true</enabled>
</BusinessRule>
业务规则链接:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BusinessRuleLink SYSTEM "standardX20.dtd">
<BusinessRuleLink>
<ObjectID><localId>wt.businessRules.BusinessRuleLink:151033</localId>
</ObjectID>

<ruleSet><ObjectReference><localID>wt.businessRules.BusinessRuleSet:45346
</localId></ObjectReference></ruleSet>

<rule><ObjectReference><localID>wt.businessRules.BusinessRule:151031
</localId></ObjectReference></rule>
<blockNumber>2</blockNumber>
</BuisnessRuleLink>