Exclude Rule
Load the com.ptc.windchill.option.model.ChoiceConstraint object in Windchill database using Windchill loader.
XML Format
<csvBeginChoiceConstraint handler= "com.ptc.windchill.option.load.Loader.
beginChoiceConstraint" >
<csvconstraintName>exclude rule name</csvconstraintName>
<csvconstraintDescription>exclude rule description</csvconstraintDescription>
<csvlocal>specify if local constraint</csvlocal>
<csvoptionSet>name of option set where exclude rule is local</csvoptionSet>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint >
<csvConstraintChoice handler="com.ptc.windchill.option.load.Loader.constraintChoice" >
<csvname>exclude rule choice name</csvname>
<csvcontainerPath>choice container path</csvcontainerPath>
</csvConstraintChoice >
. . .
. . .
<csvEndChoiceConstraint handler="com.ptc.windchill.esi.load.endChoiceConstraint" />
Attributes for csvBeginChoiceConstraint
Attribute
Description
Required or Optional?
csvnumber
Rule number
Optional
csvversion
Version of the rule
Optional
csviteration
Iteration of the rule
Optional
csvdescription
Rule description
Optional
csvlocal
Specify whether the rule is local
Optional
csvoptionSet
Specify the option set for which the rule was created
Optional
csvlifecycletemplate
Lifecycle template
Optional
csvlifecyclestate
Lifecycle state
Optional
csvteamTemplate
Team template
Optional
csvmerged
Specify whether the rule is merged
Optional
Attributes for csvConstraintChoice
Attribute
Description
Required or Optional?
csvname
Name of the member choice specified by the rule
Required
csvcontainerPath
Path to the context to the member choice
Optional
Example
<csvBeginChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.beginChoiceConstraint">
<csvnumber>ER-00001</csvnumber>
<csvdescription>Red Colour Valid Finish</csvdescription>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Red</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Glossy</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Matt</csvname>
</csvConstraintChoice>
<csvEndChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.endChoiceConstraint" />

<csvBeginChoiceConstraint
handler"com.ptc.windchill.option.load.Loader.beginChoiceConstraint"=>
<csvnumber>ER-00002</csvnumber>
<csvdescription>Green Colour Valid Finish</csvdescription>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Green</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Glossy</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Matt</csvname>
</csvConstraintChoice>
<csvEndChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.endChoiceConstraint" />

<csvBeginChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.beginChoiceConstraint">
<csvnumber>ER-00003</csvnumber>
<csvdescription>Blue Colour Valid Finish</csvdescription>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Blue</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Glossy</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Matt</csvname>
</csvConstraintChoice>
<csvEndChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.endChoiceConstraint" />
Was this helpful?