This function controls the retrieval of data from the data warehouse. The key points about the methods are:
-
A call is made to PreRetrieveData first (to allow for customization).
-
The domain of the document being retrieved is determined and subsequently stamped on any properties instantiated as a result of the retrieve.
-
Key elements of the map file are read into arrays to improve performance.
-
The view file is downloaded if the RetrieveViewFile parameter is set to True in the adapter header file.
-
The metadata file is read, and the document variables are stored away so that if a design basis document is created later, it can be created with the same information as it is stored in the data warehouse.
-
The data file is read, and if a mapping is found, a load file is generated in the authoring schema. While the data is being processed, and if the item is a class definition (and is also mapped), then a call is made to the function AutoExpandClassDef to allow for enhanced mapping.
-
The tombstone file is read, and any delete instructions found are extracted. The Same As objects are read and checked against the authoring database, and if any exist, a new delete instruction (with the UID of the authoring item) is created and added to the file.
-
A call is made to PostProcessRetrievedObjects to allow for further customization if needed.
-
The data is serialized.