The following meta-schema relationship definitions are used to define the mapping between the integration SmartPlant schema and CDW schema.
-
ClassDefToClassDef
-
InterfaceDefToInterfaceDef
-
RelDefToRelDef
-
PropertyDefToPropertyDef
-
MappingToSPFMapFunction
Some examples of mapping are included below:
<Rel>
<IObject UID="PFDControlValve.SPFCDWInstrument.ClassDefToClassDef" />
<IRel UID1="PFDControlValve" UID2="SPFCDWInstrument" DefUID="ClassDefToClassDef" OrderValue="0" IsRequired="False" />
<ISchemaObj />
<IMapRel />
</Rel>
<Rel>
<IObject UID="InstrumentType.SPFCDWInstrumentType.PropertyDefToPropertyDef" />
<IRel UID1="InstrumentType" UID2="SPFCDWInstrumentType" DefUID="PropertyDefToPropertyDef" OrderValue="0" IsRequired="False" />
<ISchemaObj />
<IMapRel />
</Rel>
<Rel>
<IObject UID="IEquipment.ISPFCDWEquipment.InterfaceDefToInterfaceDef" />
<IRel UID1="IEquipment" UID2="ISPFCDWEquipment" DefUID="InterfaceDefToInterfaceDef" OrderValue="0" IsRequired="False" />
<ISchemaObj />
<IMapRel />
</Rel>
<Rel>
<IObject UID="EquipmentComponentComposition.SPFCDWEquipmentComponentComposition.RelDefToRelDef" />
<IRel UID1="EquipmentComponentComposition" UID2="SPFCDWEquipmentComponentComposition" DefUID="RelDefToRelDef" OrderValue="0" IsRequired="False" />
<ISchemaObj />
<IMapRel />
</Rel>
One-to-many class definition mapping
If the published class definition is mapped to more than one CDW class definition, the system evaluates the Order Value set on each mapping relationship and creates an instance of the CDW class definition where the Order Value is lowest.
Order Values are not required on the ClassDefToClassDef relationship, but if no relationships have a value, the system will create a class definition based on the first mapping relationship it encounters. The system treats an Order value of 0 (zero) as if no Order value is set.