Retrieve Operation Description - Integration - Update 44 - Help - Hexagon

Integration Help

Language
English
Product
Integration
Search by Category
Help
Smart 3D Version
12.1 (2019)
Smart Construction Version
2019(7.0)
SmartPlant Foundation / SDx Version
10
Smart Electrical Version
2019 (9.0)
Smart Materials/Smart Reference Data Version
2020 (10.0)
Smart P&ID Version
9 (2019)
Smart Review Version
2020 (15.0)
Smart Engineering Manager Version
10 (2019)
Smart Interop Publisher Version
13.1 (2019 R1)
Smart Isometrics Version
7.0(2019)
Spoolgen Version
9.0(2019)

When an external document is retrieved, SmartPlant Adapter compares the objects in that document to the data in the Smart Electrical database and generates the following tasks in the To Do List:

  • Create Task — Generated when a new item needs to be created

  • Update Task — Generated when an existing item needs to be modified

  • Delete Task — Generated when an existing item needs to be deleted

SmartPlant Adapter depends on the data in the tool schema to support the retrieve operation.  When a document is retrieved, SmartPlant Adapter receives two containers of data:

  • Document Container — Includes all of the published objects and relationships for that document

  • Tombstone Container — Includes information about deleted objects and relationships

SmartPlant Adapter Actions in the Document Container

SmartPlant Adapter iterates over all of the objects in the Document Container and performs the following actions:

  • Use Primary Interface to Determine Class — The incoming object is tested for a primary interface to determine which Map Class should handle the retrieval of that object.

  • Generate Update Task — SmartPlant Adapter searches for an existing Smart Electrical item to update. If an item is found, it generates an Update Task in the To Do List. The properties of the incoming object are compared against the properties of the existing item. When differences are found, property updates are added to the task. The list of properties to be compared is defined by the properties in the tool schema.

  • Generate Create Task — If no item is found to update, a Create Task is generated in the To Do List.  Property updates are added to the task for each of the incoming property values. The list of properties to be added is defined by the properties in the tool schema.

  • Generate Claim Task — If no item is found in As-Built, a Claim Task is generated in the To Do List. Property updates are added to the task for each of the incoming property values. The list of properties to be added is defined by the properties in the tool schema.

  • Retrieve Relationships — Depending on the class being retrieved, SmartPlant Adapter defines the types of relationships that are to be retrieved for each data object.

SmartPlant Adapter Actions in the Tombstone Container

SmartPlant Adapter iterates over all of the objects in the Tombstone Container and performs the following actions:

  • Generate Delete Task — When SmartPlant Adapter encounters a delete instruction in the tombstone container, SmartPlant Adapter searches for an existing item in the Smart Electrical project that is correlated to the item that was deleted in the other application. If such an item is found in the project and this item does not exist in As-Built, a Delete Task is generated in the To Do List.

  • Generate Claim Task and Delete Task — When SmartPlant Adapter encounters a delete instruction in the tombstone container, SmartPlant Adapter searches for an existing item in the Smart Electrical project that is correlated to the item that was deleted in the other application. If such an item is not found in the project but this item exists in As- Built, a Claim Task and Delete Task are generated in the To Do List.

  • Generate Unclaim Task — When SmartPlant Adapter encounters an unclaim instruction in the tombstone container, SmartPlant Adapter searches for an existing item in the Smart Electrical As-Built that is correlated to the item that was unclaimed in the other application. If such an item is found in As-Built, an Unclaim Task is generated in the To Do List.

  • Remove Delete Task — When SmartPlant Adapter encounters a resurrect instruction in the tombstone container, SmartPlant Adapter searches for an existing Delete Task that is correlated to the item for which the resurrect instruction was issued. If such a task is found, this Delete Task is removed.