Deployment (Import/Export)

Introduction

ConSol CM offers the option to export the system configuration with or without run-time data into a file and to import this file into another ConSol CM system. The transfer file is called a scenario (sometimes also called a scene). It can contain various data - details are explained in the following sections.

Usually a scenario with configuration data is used to transfer data from a test to a staging or production system.

Since ConSol CM works with transfer keys for all objects it is highly recommended to transfer test to staging or production environments by using a scenario, and not to implement the same functionality in both systems. In case a transfer (export/import) is performed later on, there will be duplicate objects! Please read the detailed explanations below.

Scenarios

A scenario is a file in a proprietary ConSol CM format (similar to .zip, .jar, and .tar) that contains the data of a ConSol CM installation. It can be exported from one ConSol CM system and imported into the same or another system. This can be very helpful, e.g., when a test scenario is built on a test system which can then be transferred to a production server.

When an export file is created (see detailed explanation in the sections below) the administrator can decide which data should be included.

A scenario will always contain:

A scenario can contain, depending on the selection of the administrator (see figure below):

A scenario will never contain:

Deployment (Import/Export) Using the Admin Tool

In the Admin Tool, the deployments are managed using the navigation item Import/Export in the navigation group System. In this navigation item you can import or export scenarios (i.e., the whole configuration or part of it) in an application-specific format. You usually do this to transfer data between different ConSol CM installations. A typical example is transfer of the configuration from a test system to a production system.

All export/import actions are logged in the file transfer.log. A detailed description of this file is provided in the section ConSol CM Logging and Log Files.

Figure 437: ConSol CM Admin Tool - System, Import/Export

The import of external data can modify, overwrite, or delete existing data irrecoverably. Although the user is prompted for confirmation at critical points during deployment, this cannot prevent erroneous handling. Use this function only if you are very sure what you are doing. In case of doubt please ask the ConSol CM support team or a ConSol CM consultant for assistance.

Export

Click on Export afterwards to start the data export.

You will have to select the data that should be included in the export file (scenario):

Figure 438: ConSol CM Admin Tool - System, Import/Export: Export configuration

If you would like to export the complete configuration, select All in the Configuration data section. The export/import of subsets (e.g., templates only) is usually applied when selected data (e.g., from a test environment) has to be transferred to another (e.g., live) system.

Import

The general principles of ConSol CM scenario import are:

  1. If the checkbox Delete existing data has not been selected, the scenarios are merged, as described here:
    • Data are only added, nothing is deleted.
    • If the imported scenario contains the same field/parameter as the original scenario, the value from the imported one overwrites that of the original scenario.
      Example: For the field priority, the imported scenario has the annotation position = 0;2. The original scenario contains the value position = 2;2 for the field priority. Thus, in the resulting scenario after the import, the value for position is 0;2.
    • If the imported scenario contains more parameters than the original scenario, the parameters are added to the original one.
      Example: The imported scenario has the annotation visibility = none for the field PersonID. In the original scenario, the field PersonID is present, but does not have the annotation. Thus, in the resulting scenario after the import, the field PersonID will have the annotation visibility = none and will thus be invisible.
    • If the imported scenario contains less data/fewer parameters than the original one, the original data will be present in the resulting scenario. Nothing is deleted.
      Example: If the field PersonID in the imported scenario no longer contains the annotation visibility = none, but the original scenario does contain the annotation, it will remain. Thus, in the resulting scenario the field PersonID is still invisible.
    • For scripts and templates, the latest version (according to the time stamp) is used, no matter from which scenario.
    • Objects are identified by an internal key (transfer key).
      When an imported scenario contains an object with the same name but another transfer key, technically, these are two objects, and the new object will be added from the import to the original scenario (e.g., when a user Mr. Miller exists in both scenarios, there will be one user Mr. Miller and one user Mr. Miller (1) in the resulting scenario after the import.
      To make sure you can transfer another import scenario from the same source (test system), you can delete the original Mr. Miller user and transfer the tickets to Mr. Miller (1), an operation that is supported by the ConSol CM Web Client. Then rename Mr. Miller (1) to Mr. Miller. Now, the Mr. Miller user has the transfer key that originated in the import scenario and during the next import there will be no problem.
      The general use case is: The transfer key is created by the ConSol CM system and allows the re-import and/or the update of the configuration data.
  2. If the checkbox Delete existing data has been checked, the entire system is deleted, i.e., all existing data are deleted. All data means:
    • Configuration data
    • Run-time data

    That means if Delete existing data has been selected, it is not possible to preserve anything from the original scenario. Everything is deleted! Only system properties are not deleted.

  3. Imported runtime data do not overwrite existing runtime data. For data import on a large scale, please use ETL tools, not scenario export/import!

The following parameters have to be set for an import operation:

Click on Import afterwards to start the data import.

Transformation of user name and password fields during import into CM 6.11

In ConSol CM version 6.11, the behavior of two customer fields (former data object group fields) have changed:

Thus, when you import a scenario from a ConSol CM system with a version lower than 6.11 to a system running version 6.11 (or higher), two transformations will be performed automatically. The checkbox Delete existing data for the import operation does not have any influence on this behavior. 

Workflow Deployment (for Deployment Error Recovery Only)

Usually, all operations concerning workflow design and deployment are performed using the Process Designer. However, if an error occurs during workflow deployment, you can transfer the tickets that could not be transferred into the new workflow using the following options.

First select the queue(s), then choose the transfer mode:

Please also read the detailed explanation of the workflow deployment process in the ConSol CM Process Designer Manual.