Configuring the Sourcing Status Values
You can add custom sourcing status values or remove existing sourcing status values using a CCD package that contains the updateEnum.xml load file.
Perform the following steps to configure the sourcing status values:
2. Run the following commands:
a. ant load.data -Dadministrator.username=wcadmin
b. ant load.data -Dwt.customizationSource.dir.path=/opt/ptc
3. Restart the Windchill server to populate the cache.
Samples
See the following sample CCD packages and code snippets for reference:
Creating a Custom Sourcing Status
|
|
Do not use the Customize Modeled Enumerations utility to define custom sourcing status in Windchill 12.1.2.24 or earlier. For these releases, use the CCD-based configuration described in this topic.
|
Sample CCD package:
customization_1.zip
Sample code snippet:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE NmLoader
SYSTEM "standard11_2.dtd">
<NmLoader>
<csvBeginUpdateEnumDefView
handler="com.ptc.core.lwc.server.BaseDefinitionLoader.beginUpdateEnumerationDefinition">
<csvname>com.ptc.windchill.suma.axl.AXLPreferenceRB</csvname>
</csvBeginUpdateEnumDefView>
<csvBeginEnumMemberView handler="com.ptc.core.lwc.server.BaseDefinitionLoader.beginProcessEnumMembership">
<csvname>Update_Loader_SS2</csvname>
</csvBeginEnumMemberView>
<csvPropertyValue handler="com.ptc.core.lwc.server.BaseDefinitionLoader.processEnumEntryPropertyValue">
<csvname>displayName</csvname>
<csvisDefault>false</csvisDefault>
<csvvalue>Update_Loader_SS2</csvvalue>
</csvPropertyValue>
<csvPropertyValue handler="com.ptc.core.lwc.server.BaseDefinitionLoader.processEnumEntryPropertyValue">
<csvname>selectable</csvname>
<csvisDefault>false</csvisDefault>
<csvvalue>true</csvvalue>
</csvPropertyValue>
<csvPropertyValue handler="com.ptc.core.lwc.server.BaseDefinitionLoader.processEnumMembershipPropertyValue">
<csvname>sort_order</csvname>
<csvisDefault>false</csvisDefault>
<csvvalue>220</csvvalue>
</csvPropertyValue>
<csvEndEnumMemberView handler="com.ptc.core.lwc.server.BaseDefinitionLoader.endProcessEnumMembership"/>
<csvEndUpdateEnumDefView handler="com.ptc.core.lwc.server.BaseDefinitionLoader.endUpdateEnumerationDefinition"/>
</NmLoader>