Personalizzazione avanzata > Business Logic Customization > Business Rules > Business Rule Types > Release Target Rule > Examples
  
Examples
The following XML defines a set of business rule objects which implement the Release Target rule.
Business Rule Set that implements the Release Target rule:
<?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>
Business Rule that Implements the Release Target Rule
<?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>
Business Rule Link that Implements the Release Target Rule
<?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>
</BusinessRuleLink>