Advanced Customization > Business Logic Customization > Data Exchange using Standards in Windchill > STEP Data Exchange using EXPRESS > AP242 XPX Mapping Guide > Mapping Table for Import of AP242 (non-Windchill data) to Windchill EXPRESS Entities > ChoiceEnable (Enable Rule)
  
ChoiceEnable (Enable Rule)
ChoiceEnable Mapping Table
AP242
Windchill
specificationInclusion
SpecificationInclusionAssignment
e_ChoiceEnable
If specificationInclusion.ifCondition is of type Specification and specificationInclusion.includedSpecification is not of type Specification or specificationInclusion.includedSpecification.parameters is not of type specification then only import it as e_ChoiceEnable
specificationInclusion.id
r_number
if specificationInclusion.id is not set then
r_number =”N-”+random number
specificationInclusion.description
description
specificationInclusion.ifCondition
Get relevant choice from specification referenced by specificationInclusion.ifConditionsourceChoiceReference = choice.ObjectId.ufid
specificationInclusion.includedSpecification.parameters
If specificationInclusion.includedSpecification is of type condition then get choices belonging to the specifications from specificationInclusion.includedSpecification.parameters and populate e_ChoiceMappableChoiceLink
For more information, see Mapping for ChoiceMappableChoiceLink
Get DataValidityEffectivity assigned to SpecificationInclusionAssignment
Populate e_WTDatedEffectivity
For more information, see Mapping for WTDatedEffectivity
SpecificationInclusionAssignment.assignedTo
Get the relevant OptionSet from ProductClass referenced by SpecificationInclusionAssignment.assignedTo and populate e_OptionSetChoiceRuleLink
For more information, see Mapping for e_OptionSetChoiceRuleLink.
r_local=true
externalTypeId = WCTYPE|com.ptc.windchill.option.model.ChoiceEnable
For generation of Local ids and Ufids, see LocalId and Ufids Mapping Table
PART 21 Representation
#1052= SPECIFICATIONINCLUSION(#1054,CHARACTERSTRING(' ((null))'),$,#600,#1092);
#1053= SPECIFICATIONINCLUSIONASSIGNMENT($,$,#1052,#207);
#1092= ANDCONDITION($,$,$,*,(#943,#908,#1094),$);
#1094= NOTEQUALSCONDITION($,$,$,*,(#929,#887,#936),$);