XML Generation (Actual Publish in Batch Process) - Integration - Update 44 - Help - Hexagon

SmartPlant Integration COM Help

Language
English
Product
Integration
Search by Category
Help
SmartPlant Foundation / SDx Version
10
Smart P&ID Version
9 (2019)
Smart Engineering Manager Version
10 (2019)

Step 1 - Create and load the meta-schema, if not already done.

Step 2 - EFServiceManager performs the following steps:

  1. Steps 2a through 2e of Document Selection. Loads saved XML containers (Document, Metadata).

  2. Sorts document objects by document type.

  3. Creates container composition for a component schema.

  4. For each document type,

    1. Gets Component Schema UID by calling the GetCompSchemaUID method of the IEFAdapter interface. The Tool Adapter returns the Component Schema UID for a given document type.

    2. Gets the class definition UID of Document by calling the GetDocClassDefUID method of the IEFAdapter interface. The Tool Adapter returns the UID of the class definition of the Document for a given component schema name.

    3. Creates a container for schema objects.

    4. Calls EFClient to get the Component Schema file.

    5. Loads the Component Schema from the component schema file.

    6. Creates a container composition for document.

    7. For each document object in a document type,

      1. Creates document containers (Metadata, Document, Tombstones, and Message).

      2. Creates an instance of the document object.

      3. Copies the document object interfaces and relationships from the GenericDocument container composition to the Document container. The interfaces that are copied are IObject, IDocument, IDocVersionComposition, and IIssueRecordComposition.

      4. Calls the PublishDocument method of the IEFAdapter. The arguments are DocumentIObj, document metadata container, and document container created in step f. The Tool Adapter creates and populates document data objects. The Tool Adapter adds the view file interface to the metadata container and sets the FilePath property to the absolute path of the graphic file associated with document.

      5. Calls EFClient to publish the document. The argument is container composition of document.

      6. Releases the contents of the container composition of the document.

    8. Releases the contents of the container composition of the Component Schema.

Step 3 - Releases all containers and container compositions.