Moving Decision Center data

Now that you have a URL for your Operational Decision Manager on Certified Kubernetes, you use curl to run an administrative endpoint of the Decision Center REST API that moves the Decision Center data.

About this task

The administrative endpoint of the Decision Center REST API does the following actions:
  1. Uploads to the server the database archive that you exported from your on-premises installation, and then expands it into a temporary directory.
  2. Imports the expanded archive to your target database in background mode.
You use two Decision Center REST APIs:
  • /v1/repository/dump/import - Imports a database dump into the Decision Center repository. Parameters are:
    • backgroundMode: If true, run the import as a background task (default is false)
    • eraseSchema: If true, delete and replace the existing schema (default is false)
    • datasource: Data source where the repository is located (default is jdbc/datasource)
  • /v1/repository/dump/background - Checks the state of the import task that runs in the background. A No response means the import is complete.

For the <login> and <password> required in the curl commands, provide the credentials to access Decision Center on Certified Kubernetes. Make sure that the user you enter has both the rtsAdministrator and rtsInstaller roles (typically user odmAdmin). The login and password in the URL can be replaced with an appropriate method of authentication, such as an authorization header.

For <host:port>, specify the URL to access Decision Center on Certified Kubernetes. Make sure that the URL ends with /decisioncenter-api.

The optional argument <datasource> can be used to specify the datasource if it is different from jdbc/ilogDataSource.

To prevent certificate problems when you move your data, use the -k option.

Procedure

  1. In your on-premises installation of Operational Decision Manager, export the Decision Center database using one of the two options described in Preparing for the Decision Center data export.
  2. Use the following curl command to upload and expand your database archive to the server, and then import it to your new database location.
    curl -k -X POST "https://<login>:<password>@<host:port>/decisioncenter-api/v1/repository/dump/import?backgroundMode=true&eraseSchema=true" -H 'Content-Type: multipart/form-data' -F 'file=@<dbdump-filename.zip>;type=application/zip'
    After this command completes, the import can take some time depending on the size of your database content.
  3. To make sure that the import is complete, run the following command until it returns No, meaning that the background task is done.
    curl -k -X POST "https://<login>:<password>@<host:port>/decisioncenter-api/v1/repository/dump/background"

    When the import is complete, Decision Center in Certified Kubernetes is ready to be used.

  4. Review your server definitions in the Decision Center Business Console > Administration > Servers tab. Adjust them with the new URL for Rule Execution Server and Rule Execution Runner.
  5. To verify that everything works as planned, you can run a deployment.

Results

Your original on-premises data has now been moved to the Decision Center of Certified Kubernetes.

Important: You can no longer use your on-premises environment. The environments are now separated, and any changes you make on premises are not copied to Certified Kubernetes.