Deleting Business Rule Objects
You can delete existing business rule objects by using the DeleteBusinessRuleObjects command line utility.
To delete a business rule or business rule set, run the following command:
windchill wt.businessRules.DeleteBusinessRuleObjects “typeOfObjectToDelete:
key:containerPath”
To delete a business rule link, both the business rule set and the business rule need to be specified:
windchill wt.businessRules.DeleteBusinessRuleObjects "typeOfObjectToDelete:
Key:containerPath:Key:containerPath"
Argument Name
Description
Examples
typeOfObjectToDelete
The type of object to delete
BusinessRuleBusinessRuleSet BusinessRuleLink
Key
The unique key of the object to delete
CHECKOUT_RULE CHANGEABLE_PRE_RELEASE
containerPath
The context path of the object
/wt.inf.container.OrgContainer=PTC/wt.pdmlink.PDMLinkProduct=GOLF_CART
* 
The argument for the object to delete must be in quotes since context paths may contain spaces.
If a business rule or business rule set is deleted, any link to which the object was associated is also deleted. You can specify one or more objects, separated by a space.
The following table shows examples of deleting business rule objects:
Deleting a business rule
windchill wt.businessRules.DeleteBusinessRuleObjects
"BusinessRule:keyToDelete:/wt.inf.container.OrgContainer=Org
Name/wt.pdmlink.PDMLinkProduct=Product Name"
Deleting two business rule sets
windchill wt.businessRules.DeleteBusinessRuleObjects
"BusinessRuleSet:keyToDelete:/wt.inf.container.OrgContainer=
Org Name/wt.pdmlink.PDMLinkProduct=Product Name"
"BusinessRuleSet:anotherKey:/wt.inf.container.OrgContainer=
Org Name/wt.pdmlink.PDMLinkProduct=Product Name"
Deleting a business rule link
windchill wt.businessRules.DeleteBusinessRuleObjects
"BusinessRuleLink:businessRuleSetKey:/wt.inf.container.
OrgContainer=Org Name/wt.pdmlink.PDMLinkProduct=Product
Name:businessRuleKey:/wt.inf.container.OrgContainer=Org
Name/wt.pdmlink.PDMLinkProduct=Product Name"
Isto foi útil?