A retrieved document with data can be described using the following pseudo code:
-
Search for document type by its UID.
-
Create a Task object and initialize its properties.
-
Get Tombstones (deleted items instructions).
-
Get ‘SameAs’ pairs.
-
Get the collection of objects associated with this document.
-
For each object in the collection, get its associated ClassDefs.
-
For each ClassDef, get the associated ClassDef from the SmartPlant Schema.
-
Get the objects associated with the SmartPlant Schema objects.
-
Create a task from Parent Task and Master Task.
-
Set the properties for the new task.