Chapter 5. Migrating Java project data
Projects that you developed in Java code in Red Hat JBoss BPM Suite 6.4 (for example, in Eclipse) also require modification for Red Hat Process Automation Manager 7.0. You must update the dependencies in the pom.xml file for each project, upgrade the database configured for the project, and rebuild the project. To migrate your Java client applications, you also must update the dependencies in the pom.xml file for each project. If your application uses embedded Red Hat JBoss BPM Suite engines (jBPM, Drools, OptaPlanner), this change also updates the engines. If the application calls the Process Server, the API client library is updated.
5.1. Update Java project dependencies
You must update several dependencies in your Java projects to prepare them for migration to Red Hat Process Automation Manager 7.0.
Prerequisite
The Maven repository for Red Hat Process Automation Manager 7.0 has been downloaded from the Red Hat Customer Portal and made available to the local Maven installation (as a local or remote repository).
Procedure
Open the
pom.xmlfile of the project and remove the<version>tag from any dependencies under the following groups:-
org.kie -
org.drools -
org.jbpm -
org.optaplanner
-
Add the following dependency under the
<dependencies>tag within the<dependencyManagement>section:<dependency> <groupId>org.jboss.bom</groupId> <artifactId>rhpam-platform-bom</artifactId> <version>${rhpam.version}</version> <scope>import</scope> <type>pom</type> </dependency>The
${rhpam.version}is the version of theorg.jboss.bom:rhpam-platform-bomartifact in the Maven repository for Red Hat Process Automation Manager 7.0. You can view the version of the artifact by entering the repository and navigating to themaven-repository/org/jboss/bom/rhpam/rhpam-platform-bomdirectory. The name of the only sub-directory in this directory is the version. For example:7.0.0.GA-redhat-1.If your code uses any Drools CDI annotations (
@KReleaseId,@KContainer,@KBase,@KSession), also add the following dependency:<dependency> <groupId>org.drools</groupId> <artifactId>drools-cdi</artifactId> </dependency>
This dependency is necessary because the CDI extension for processing the annotations is now defined using a separate module. Without this dependency, the annotations do not work.
Replace the legacy
jbpm-workitemsdependency (if applicable) with one or more of the new dependencies. The new dependencies that you choose depend on the work items that your code uses.Legacy
jbpm-workitemsdependency:<dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-workitems</artifactId> </dependency>
New
jbpm-workitemsdependency options:<dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-workitems-core</artifactId> </dependency> <dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-workitems-bpmn2</artifactId> </dependency> <dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-workitems-email</artifactId> </dependency> <dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-workitems-jms</artifactId> </dependency> <dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-workitems-rest</artifactId> </dependency> <dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-workitems-webservice</artifactId> </dependency>
Replace the legacy
org.guvnordependency (if applicable) with the neworg.uberfiredependency.Legacy
org.guvnordependency:<dependency> <groupId>org.guvnor</groupId> <artifactId>guvnor-rest-client</artifactId> </dependency>
New
org.uberfiredependency:<dependency> <groupId>org.uberfire</groupId> <artifactId>uberfire-rest-client</artifactId> </dependency>
Replace the legacy
org.kie.remotedependency (if applicable) with the neworg.kie.serverdependency.Legacy
org.kie.remotedependency:<dependency> <groupId>org.kie.remote</groupId> <artifactId>kie-remote-client</artifactId> </dependency>
New
org.kie.serverdependency:<dependency> <groupId>org.kie.server</groupId> <artifactId>kie-server-client</artifactId> </dependency>
This dependency is necessary because Business Central no longer has execution server capabilities nor API endpoints related to the execution server.
-
Update the version of the project artifact and save the
pom.xmlfile.
5.2. Upgrade your database
Red Hat Process Automation Manager 7.0 contains updates to the database schema for optimal performance with the new Business Central and Process Server. You must update the Red Hat JBoss BPM Suite 6.4 database to be used with Red Hat Process Automation Manager 7.0 using one of the upgrade scripts provided with this release to accommodate the change.
Prerequisites
- The Red Hat Process Automation Manager 7.0.0 Add-Ons distribution has been downloaded from the Red Hat Customer Portal and extracted to a temporary directory.
- The database has been backed up, as a precaution.
Procedure
-
Navigate to the extracted
rhpam-7.0.0-add-onsfolder in your temporary directory and extract therhpam-7.0-migration-tool.zipsub-folder (if not extracted already). -
Navigate to the extracted
rhpam-7.0-migration-toolfolder and open theupgrade-scriptsfolder. This folder contains database upgrade scripts that are required for applying changes to the database model made in Red Hat Process Automation Manager 7.0. - Log on to the Red Hat JBoss BPM Suite 6.4 database to be used with Red Hat Process Automation Manager 7.0 and run the relevant Red Hat Process Automation Manager 7.0 upgrade script, according to the supported database type. This prepares the database for Red Hat Process Automation Manager 7.0.
-
If you use Quartz as your scheduling service, additionally run the
quartz-upgrade.sqlscript provided in the relevant database folder within theupgrade-scriptsfolder. This script updates your Quartz version to 2.2.3 in compliance with Red Hat Process Automation Manager 7.0 requirements.
5.3. Verify the Java project migration
After you have migrated all Java project data and have upgraded the relevant database, rebuild the Java project to verify successful migration.
Prerequisites
- Java project dependencies have been updated.
- The Red Hat JBoss BPM Suite 6.4 database to be used with Red Hat Process Automation Manager 7.0 has been upgraded.
- Maven 3.x or later is installed.
- Java 8 or later is installed.
Procedure
Rebuild each Java project using a regular Maven build.
$ mvn clean install
Review all project data in each build to confirm successful migration.
If you encounter build errors, verify that the project dependencies have been updated correctly. To review other product changes that may have impacted your Java project, see Chapter 6, Other migration considerations.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.