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 > ChoiceMapping (Include Rule)
  
ChoiceMapping (Include Rule)
ChoiceMapping Mapping Table
AP242
Windchill
specificationInclusion
SpecificationInclusionAssignment
e_ChoiceMapping
If specificationInclusion.ifCondition is of type Specification and if specificationInclusion.includedSpecification is of type Specification or specificationInclusion.includedSpecification.parameters is of type specification then only import it as e_ChoiceMapping
specificationInclusion.id
r_number
if specificationInclusion.id is not set then
r_number =”I-”+random number
specificationInclusion.description
description
specificationInclusion.ifCondition
Get relevant choice from specification referenced by specificationInclusion.ifConditionsourceChoiceReference = choice.ObjectId.ufid
specificationInclusion.includedSpecification
specificationInclusion.includedSpecification is of type specification then get choices belonging to the specification from specificationInclusion.includedSpecification
or 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.ChoiceMapping
For generation of Local ids and Ufids, see LocalId and Ufids Mapping Table
PART 21 Representation
#1016= SPECIFICATIONINCLUSION(#1018,CHARACTERSTRING(' ((null))'),$,#770,#1090);
#1017= SPECIFICATIONINCLUSIONASSIGNMENT($,$,#1016,#207);
#1018= IDENTIFIER('I-00043',$,#58,#13);
#1090= ANDCONDITION($,$,$,*,(#838,#736),$);