DeepExport

This method can be used to export a complete application structure at once; that is, the application entity together with all its sub entities and its deployment model.

Syntax

deepExport -mt Application [-ct <custom type name>] [-fi [<file path>]] [-begin <no of first entity> -count <no of entities>] [-startdate <date>] [-enddate <date>] [-where <condition>]

(line breaks for formatting purposes only)

Parameters

Example

Importexportcli.exe deepExport -con url -usr username -pwd password -mt Application -fi filename

Result ZIP File

Deep export validates the input parameters (see: DeepExport) and generates a ZIP file in base64 encoded format that contains a set of the common single entity export files in a predefined file and folder structure, shown in the following example:

  1. Application 1
    1. All components
    2. All component links
    3. All deployment target filters
    4. Dynamic properties of the application
    5. Dynamic properties of the components
    6. All workflows
    7. All workflow definitions
    8. Dynamic properties of the workflow
  2. Application 2
    1. All components
    2. ...
  3. Application n
    1. ...

In addition to this, a meta file is generated for the deep export and attached to the ZIP Folder Structure file in its root folder. This meta file contains information about the content of the export file, about the included files and about the system version with which it was created (see Meta file with information about the export).

ZIP Folder Structure

For each application that gets exported the following folder and file structure is created:

Each single entity export uses the name as identifier of the entity itself and all of its references.

Meta Information File

The meta file Export.xml is a XML file that contains relevant data about the export files and consists of three sections (XML elements):

  1. XML element System: Information about the CDA version the export was created with
  2. XML element Files: Information about the exported files including their relative paths, listed in the order in which they must be imported.
  3. XML element ExportContext: Information about the main entities that of the export file

System:

Files

ExportContext:

The context information belongs to the main entities (currently applications only) for which the export was done. For each application the XML element ExportContext is written to the file:

Example

Example of a deep export meta file:

<?xml version="1.0" encoding="utf-8"?>
<DeepExport>
 <System>
   <!-- Application version with which the export was created -->
   <SystemVersion>3.5.168.20601</SystemVersion>
 </System>
 <Files>
   <!-- List of all files in the order they need to be imported --> 
   <File>\Application App1\Application Export Application.xml</File>
   <File>\Application App1\Component Database\Component Database.xml</File>
   <File>\Application App1\Component Database\Component Web App.xml</File>
 </Files>
 <ExportContext>
   <!-- List of all entities the export was performed for. -->
   <Entities>
     <Entity>
       <mainType>Application</mainType>
        <name>Export Application</name>
        <description>Some additional description</description> 
       <createdOn>2012-12-06T11:18:50.4790453+01:00</createdOn>
       <createdBy>2000/API/API</createdBy>
       <lastModifiedOn>2012-12-06T14:14:05.4790453+01:00</lastModifiedOn>
       <lastModifiedBy>2000/API/API</lastModifiedBy>
     </Entity>
   </Entities>
 </ExportContext>
</DeepExport>

See also: