Integration with Other Applications > Introduction to Windchill ESI > Integrating Windchill ESI With Oracle Applications > Bills of Material > Configuring Option to Inhibit Publishing of a Production BOM
  
Configuring Option to Inhibit Publishing of a Production BOM
A BOM can contain parts that are either internally manufactured by a company or sourced externally. In Windchill terms, this is identified when the Source attribute for a part is set to either Make or Buy in a production BOM. With the default settings, when you publish a production BOM to a distribution target or an ERP system, the parts which are set to Buy are also published. The user can select any combination of attributes from part or enterprise data or both, to specify when not to publish a production BOM for a part.
This topic describes the preferences used to inhibit production BOM publishing. Use business rules to specify the part or enterprise data, or both the attributes and their corresponding values.
Prerequisite
You have created or loaded a business rule set for this configuration. For more information on business rules see Defining New Business Rules.
To configure the ability to inhibit publishing of the production BOM for a part:
1. Open the Preference Management utility using one of the following options:
Click Site > Utilities > Preference Management.
Click Organization > Utilities > Preference Management.
2. Select ESI > Settings > BOM.
3. Click Business rule set to inhibit production BOM publishing.
4. Set a preference to specify a business rule to not publish the production BOM for a part.
5. Click Manage Distribution and Edit Distribution Target for File. Set the value of Always publish Production BOM for a Part when Publishing a BOM and Always publish Production BOM for a Part when Publishing a Change Notice to No as per your business requirement.
The following example shows how to define a business rule, a business rule set, and a business rule link that associates the business rule with the business rule set for not publishing the production BOM.
Defining a Business Rule:
This is a sample of the format to be used to define a business rule.
<BusinessRule>
<ObjectID><localId>wt.businessRules.BusinessRule:210011</localId></ObjectID>
<objectContainerPath>/</objectContainerPath>
<key>ESI_ATTRIBUTE_RULE</key>
<selector>ATTRIBUTE_RULE</selector>
<name>ESI Attribute Rule</name>
<description>ESI Attribute Rule</description>
<enabled>true</enabled>
<updateIfExists>true</updateIfExists>
<configs>
<config name="objectType" value="wt.part.WTPart"></config>
<config name="source" value="=buy"></config>
</configs>
</BusinessRule>
Defining a Business Rule Set:
This is a sample of the format to be used to define a business rule set.
<BusinessRuleSet>
<ObjectID><localId>wt.businessRules.BusinessRuleSet:210022</localId></ObjectID>
<objectContainerPath>/</objectContainerPath>
<key>ESI_ATTRIBUTE_RULE_SET</key>
<name>ESI Attribute Rule Set</name>
<description>ESI Attribute Rule Set</description>
<enabled>true</enabled>
<overridable>true</overridable>
</BusinessRuleSet>
Defining a Business Rule Link:
This is a sample business rule link that associates the business rule with the business rule set.
<BusinessRuleLink>
<ObjectID><localId>wt.businessRules.BusinessRuleLink:210033</localId></ObjectID>
<ruleSet><ObjectReference><localId>wt.businessRules.BusinessRuleSet:139525</localId></ObjectReference></ruleSet>
<rule><ObjectReference><localId>wt.businessRules.BusinessRule:139524</localId></ObjectReference></rule>
<blockNumber>10</blockNumber>
</BusinessRuleLink>