General Information
This opening ID is invoked:
- for each PLM component: the terminal reference to be transferred.
The table below provides you with information related to the definition of the Opening ID.
PLM Opening ID: | CATDWCExportMainRepresentationValuation
|
Customization intent: | Computation |
Execution context: | Client |
Sample
For best results, it is recommended to initialize DWCMainRep in CATRule:
if(
Parameters-> HasAttribute("DWCMainRep") == true )
{
Parameters-> SetAttributeObject("DWCMainRep",NULL)
}
In the example below a terminal Reference having multiple Representation instances under it is passed to BLO.
- One representation meets MainRep criterion
.
The PLMCoreReference object is passed
to BLO for processing MainRep. Only one representation
satisfies the MainRep
criterion. Using this
representation object, BLO valuates DWCMainRep as:
Parameters -> SetAttributeObject( "DWCMainRep", aRep )
where aRep is of the PLMCoreRepReference type
When the DWCMainRep attribute is set to the valid PLMCoreRepReference, DownwardCompatibility validates that the set PLMCoreRepReference is a child of the given PLMCoreReference and proceeds with further processing. If the PLMCoreRepReference set by CATRule is not a child of the given PLMCoreReference, DownwardCompatibility aborts with an appropriate error message.
- More than one representation meets the MainRep criterion.
The PLMCoreReference object is passed to BLO for processing MainRep. More than one representation satisfies the MainRep criterion. In such a case, you must select the best of them.
Parameters -> SetAttributeObject( "DWCMainRep", aRep )
where aRep is of the PLMCoreRepReference type
When the DWCMainRep attribute is set to the valid PLMCoreRepReference, DownwardCompatibility validates that the PLMCoreRepReference set is a child of the given PLMCoreReference and proceeds with further processing. If the PLMCoreRepReference set by CATRule is not a child of the given PLMCoreReference, DownwardCompatibility aborts with an appropriate error message.
- No representation meets the MainRep criterion.
The PLMCoreReference object is passed to BLO for processing MainRep. None of the PLMCoreRepresentationReferences children match the MainRep criterion.
BLO valuates DWCMainRep as:
Parameters -> SetAttributeObject( "DWCMainRep", NULL )
where aRep is of the PLMCoreRepReference type.
DownwardCompatibility retrieves this attribute, finds it is NULL and proceeds with the processing.