Red Hat Training

A Red Hat training course is available for Red Hat Decision Manager

Chapter 2. Migrating projects in Decision Central

If you have created projects in the Business Central workbench in BRMS 6.4, you can migrate them to Red Hat Decision Manager 7.0 by importing the asset repository into Decision Central.

Prerequisites

  1. In BRMS 6.4 Business Central, look up the names of the repositories that contain your project. The default repository name is repository1 .
  2. Stop BRMS 6.4 Business Central.
  3. Locate the .niogit directory. In the default installation, its location is $EAP_home/bin/.niogit . This location can be changed with the org.uberfire.nio.git.dir system property in the $EAP_home/standalone/configuration/standalone.xml file. The system property can also be set with a -D option in the command that starts Business Central.
  4. Install the Red Hat Decision Manager, including Decision Central, on the same host as BRMS 6.4 Business Central, using a separate JBoss EAP installation. For instructions, see Installing Red Hat Decision Manager on premise.

Procedure

  1. Log in to Red Hat Decision Manager 7.0 Decision Central.
  2. In the main menu, select Projects.
  3. Click the dotdotdotbutton icon and select Import Project.
  4. In the Repository URL field, type the URL:

    file://<path>/.niogit/<repository>.git

    For example, if the location of the .niogit directory is /opt/eap7.0/bin/.niogit and you want to import projects from the repository1 repository:

    file:///opt/eap7.0/bin/.niogit/repository1.git
  5. Click Import.
  6. Select the projects to import and click Import.
  7. A NoRemoteRepositoryException exception might be displayed. In this case complete the following steps:

    1. In a shell terminal, change to the repository subdirectory (under the .niogit) directory you are importing
    2. List the remotes: git remote -v
    3. Remove all listed remotes: git remote remove <remote-name>

      For example:

      $ /opt/eap7.0/bin/.niogit/repository1.git
      $ git remote -v
      origin  https://github.com/guvnorngtestuser1/guvnorng-playground (fetch)
      origin  https://github.com/guvnorngtestuser1/guvnorng-playground (push)
      $ git remote remove origin

      Then import the projects again. (You can add the remotes in the new repository later if necessary).

  8. Wait for the importing and indexing to complete.
  9. Repeat the process for any other repositories that you wish to import.

Result

The projects are imported into Decision Central. You can build and deploy them as normal, using the Build & Deploy button.

Important

If you have developed the project in Java and then imported it into the Business Central workbench, you might need to migrate the project as a Java project. For instructions, see Chapter 3, Migrating Java projects.