When publishing from a SmartPlant Foundation authoring application, such as the Line List application, the system looks for any relationships using the new meta-schema relationship definition SPFAuthoringRelDefToCDWRelDef. If any are found, the objects being published are analyzed to see if any of them have instances of the AuthoringRelDefToCDWRelDef relationship.
If any relationships exist, a new fifth publish file is created with a new interface instantiated on the file that is used in the code to identify the relationship. The new interface is called ISPFTEFCommonRels, and a new method definition on this interface, ProcessAuthoringRels, does the following:
-
Reads the data file to determine the source component schema.
-
Reads the common relationships file looking for any relationships. This is an item, such as a supplier, that is visible to both the SmartPlant Foundation authoring application and the data warehouse.
-
Queries for published items using End1 and End2 of any of the relationships.
-
Performs a bulk expansion to get the ComprisedOf relationships for all the published items found.
-
Determines which end is the published item and finds the CDW object.
-
Creates a relationship using the mapping between the CDW item and the common item.
-