Возможности управления данными > Управление структурами деталей > Возможности Windchill, связанные с опциями и исполнениями > Управление данными опций и исполнений — ссылки > Загрузка данных для опций и исполнений > Правило исключения
  
Правило исключения
Загрузите объект com.ptc.windchill.option.model.ChoiceConstraint в базу данных Windchill с помощью загрузчика Windchill.
Формат XML
<csvBeginChoiceConstraint handler= "com.ptc.windchill.option.load.Loader.
beginChoiceConstraint" >
<csvconstraintName>имя правила исключения</csvconstraintName>
<csvconstraintDescription>описание правила исключения</csvconstraintDescription>
<csvlocal>указать, что является локальным ограничением</csvlocal>
<csvoptionSet>имя набора опций, в котором правило исключения является локальным</csvoptionSet>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint >
<csvConstraintChoice handler="com.ptc.windchill.option.load.Loader.constraintChoice" >
<csvname>имя варианта правила исключения</csvname>
<csvcontainerPath>путь к контейнеру варианта</csvcontainerPath>
</csvConstraintChoice >
. . .
. . .
<csvEndChoiceConstraint handler="com.ptc.windchill.esi.load.endChoiceConstraint" />
Атрибуты для csvBeginChoiceConstraint
Атрибут
Описание
Обязательный или необязательный?
csvnumber
Номер правила
Необязательный
csvversion
Версия правила
Необязательный
csviteration
Итерация правила
Необязательный
csvdescription
Описание правила
Необязательный
csvlocal
Определите, является ли правило локальным
Необязательный
csvoptionSet
Указывается набор опций, для которого было создано правило
Необязательный
csvlifecycletemplate
Шаблон жизненного цикла
Необязательный
csvlifecyclestate
Состояние жизненного цикла
Необязательный
csvteamTemplate
Шаблон коллектива
Необязательный
csvmerged
Укажите, является ли это правило объединенным
Необязательный
Атрибуты для csvConstraintChoice
Атрибут
Описание
Обязательный или необязательный?
csvname
Наименование варианта участника, определенное правилом
Требуемый
csvcontainerPath
Путь к контексту для варианта участника
Необязательный
Пример
<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" />