ChoiceRule (Conditional Rule)
ChoiceRule Mapping Table
AP242
Windchill
specificationInclusion
SpecificationInclusionAssignment
e_ChoiceRule
If specificationInclusion.ifCondition is of type Condition then only import it as e_ChoiceRule.
specificationInclusion.id
r_number
if specificationInclusion .id is not set then
r_number =timestamp+random number
specificationInclusion.description
description
specificationInclusion.ifCondition
Get relevant choice from specification referenced by specificationInclusion.ifCondition.parameters and populate e_ExpressionMemberLink
Also convert condition referenced by specificationInclusion.ifCondition to expressionJsonString
expressionData=expressionJsonString.
For more information, see Mapping for ExpressionData
specificationInclusion.includedSpecification.parameters
If specificationInclusion.includedSpecification is of type condition then get choices belonging to the specifications from specificationInclusion.includedSpecification.parameters and populate e_RuleMemberActionLink.
For more information, see Mapping for RuleMemberActionLink.
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.ChoiceRule
For generation of Local ids and Ufids see LocalId and Ufids Mapping Table.
PART 21 Representation
#1096= SPECIFICATIONINCLUSION(#1098,CHARACTERSTRING('((null))'),$,#1218,
#396);
#1097= SPECIFICATIONINCLUSIONASSIGNMENT($,$,#1096,#207);
#1218= ANDCONDITION($,$,$,*,(#1178,#736),$);
這是否有幫助?