Skip to main content

Importing the select AC v3.x activities

After you've created the export.zip file, you can import the activities using import.xml file. A successful import completes the migration process, and you'll be able to access all the exported activities in your new environment.

ErrorIf you ever make any changes to the resources in the migration values.yaml file, you need to change the JVM parameters accordingly through the environment variable JAVA_OPTS– It can be up to 70% of the allocated resources.

Steps to import the activities​

  1. Copy the exported zip (from source) into the target environment shared location.****

  2. Optional: Configure the retain.xml by following the steps given below:

    1. In the target environment, locate the retain.xml file by navigating to: shared/migration/template

    2. Copy the retain.xml and paste it into a custom folder, for example:

      shared/migration/custom

    3. Open the retain.xml you copied into the custom folder****and configure it to ensure that activities already present (if any) in the target environment are retained during the import process. You can retain activities at both the service level and the field level. For more details on the supported structure and retention rules, refer to Structure of Retain XML.

  3. Locate the import.xml by navigating to:

    shared/migration/template

  4. Copy the import.xml and paste it into a custom folder, for example:

    shared/migration/custom​​

  5. Open the import.xml file you copied into the custom folder and:

    1. Update the values for the following tags:

      TagDescription
      <SourceZipLoc>Enter the path of the exported zip you copied into target environment as shown in the screenshot below:
      <RetainXMlLocation>Enter the path of the retain.xml file you configured to retain the required activities as shown in the screenshot below:
      <OverrideUser>Enter the User ID of an IT user who should own the deployed activities..
    2. Add <CreateRecovery>false</CreateRecovery> tag to disable the creation of rollback zip.

      InformationAlternatively, you can set the environment variable RECOVERY_ENABLED to false in the values.yaml file.
  6. Save the changes you made to the file.

  7. Go to migration helm artifactHUB repository.

  8. Select the appropriate version of the migration helm chart.

  9. Click INSTALL.

  10. On the migration pop-up, click this link to download the package.

  11. Extract the downloaded package.

  12. Locate the values (Type: Yaml Source File) file in the extracted package and open it.

  13. Provide values for the following properties and environment variables in the migration values.yaml file you opened.

    Variable/PropertyValue
    BACKEND_DB_URL
    • Value for Azure SQL DB:
    jdbc:sqlserver://<DB Hostname>:<Port Number>;database=<Backend Database Name>;sendStringParametersAsUnicode=false;
    • Value for Oracle DB:
    jdbc:oracle:thin:@<hostName>:<portNumber>:<S ID/ServiceName>
    • Value for Azure MySQL DB:
    jdbc:mysql://<hostName>:<portNumber>/<Backend DB Name>?sslMode=VERIFY_IDENTITY&fallbackToSystemKeyStore=false
    BACKEND_DB_USERNAME<Username of your backend database server>
    BACKEND_DB_PASSWORD<Password for your backend database server>
    BACKEND_DB_DRIVER_CLASS<Backend database driver class name>
    BACKEND_DB_TYPE
    • Value for Azure SQL DB: SQL-Server
    • Value for Oracle DB: Oracle
    • Value for Azure MySQL DB: MySQL
    SHARED_PATH<Environment variable in the values.yaml file that contains the configured shared path> The default value for this variable is /shared. This is the folder created at the root level in the PVC when you deploy Adeptia Automate.
    MIGRATION_XML_FILE_PATH<Path of the import.xml in PVC> For example, shared/migration/custom/import.xml.
    RECOVERY_ENABLEDtrue (default).
  14. Save the values.yaml file.

  15. On the command line interface, navigate to the directory where you extracted the Migration Helm package.

  16. Add migration repo by running following command:

Code

helm repo add adeptia-automate-migration https://adeptia.github.io/adeptia-automate-migration-package/charts/

Where, adeptia-automate-migration is the repo name. 17. Run the following command to import the activities.

Code

helm install my-migration adeptia-automate-migration/migration -f <Path of the values.yaml> --version 5.2.0 -n <Namespace where the application is deployed>

Where, my-migration is the name of the release. adeptia-automate-migration is the repo name.

InformationThe Migration job does not get deleted automatically after the migration is complete. You need to manually delete it before you start a new migration process.