Upgrading to the Latest BPS Version
This topic describes how you can successfully migrate to WSO2 BPS 3.5.1 from the previous WSO2 BPS version (3.2.0). If you want to upgrade from earlier versions than 3.2.0, follow the instructions from here to migrate to version 3.2.0 and then use this guide.
Prior to doing the migration, download the latest version of BPS from http://wso2.com/products/business-process-server/. The location that you extract the latest version of BPS will be referred to as <NEW_BPS_HOME>
in this document. <OLD_BPS_HOME>
refers to the location of the previous version of BPS (BPS 3.2.0).
Important: Do not start the new BPS server until you finish all the steps mentioned in this document. When copying existing packages to the new BPS home directory, some directories will not be available. In these instances, you have to create new directories using the instructions in this topic.
Migration can be divided to three main steps.
Repository migration
BPEL package migration
- Copy the existing BPEL .zip packages from the
<OLD_BPS_HOME>/repository/deployment/server/bpel
directory to theÂ<NEW_BPS_HOME>/repository/deployment/server/bpel
 directory. - Copy the BPEL super tenant extracted packages from the
<OLD_BPS_HOME>/repository/bpel/-1234/<extracted BPEL folder list>
directory to theÂ<NEW_BPS_HOME>/repository/bpel/-1234/<extracted BPEL folder list>
 directory. - if you have any tenants, do the following.
- Create aÂ
<NEW_BPS_HOME>/repository/tenants/<tenantID>/bpel
directory. - Copy the existing BPEL .zip packages from the
<OLD_BPS_HOME>/repository/tenants/<tenantID>/bpel
to the newly created directoryÂ<NEW_BPS_HOME>/repository/tenants/<tenantID>/bpel
. - Create aÂ
<NEW_BPS_HOME>/repository/bpel/<tenantID>/
 directory. - Copy the BPEL tenant extracted packages from the
<OLD_BPS_HOME>repository/bpel/<tenantID>/<extracted BPEL folder list>
to the newly created directoryÂ<NEW_BPS_HOME>/repository/bpel/<tenantID>/<extracted BPEL folder list>
.
- Create aÂ
Humantask package migration
- Copy the humantask .zip packages from
<OLD_BPS_HOME>/repository/deployment/server/humantasks
to the<NEW_BPS_HOME>/repository/deployment/server/humantasks
directory. - Copy super tenant extracted HumanTask packages fromÂ
<OLD_BPS_HOME>/repository/humantasks/-1234/<extracted humantasks folder list>
 to the newly created directory atÂ<NEW_BPS_HOME>/repository/humantasks/-1234/<extracted humantasks folder list>
. - If you have any tenants,do the followings.
- Create
<NEW_BPS_HOME>/repository/tenants/<tenantID>/humantasks
 directory. - Copy the humantask .zip packages from
<OLD_BPS_HOME>/repository/tenants/<tenantID>/humantasks
to theÂ<NEW_BPS_HOME>/repository/tenants/<tenantID>/humantasks
directory. - Create
<NEW_BPS_HOME>/repository/humantasks/<tenantID>/
 directory. - Copy humantask tenant extracted packages fromÂ
<OLD_BPS_HOME>/repository/humantasks/<tenantID>/<extracted humantask folder list>
 to the newly created directoryÂ<NEW_BPS_HOME>/repository/humantasks/<tenantID>/<extracted humantasks folder list>
.
- Create
Database migration
- Point the existing user, registry and BPS databases to the new version of BPS. To do this, do the following.
- Configure the BPS datasource by modifying the
<NEW_BPS_HOME>/repository/conf/datasources/bps-datasources.xml
file. - Configure the user and registry datasources by modifying the
<NEW_BPS_HOME>/repository/conf/datasources/master-datasources.xml
file.
- Configure the BPS datasource by modifying the
- If you have used customized database names for the user and registry databases you have to update them in the registry.xml and user-mgt.xml files.
- Update the database name for the registry database in theÂ
<NEW_BPS_HOME>/repository/conf/registry.xml
file. - Update the database name for the user database in the
<NEW_BPS_HOME>/repository/conf/user-mgt.xml
file.
- Update the database name for the registry database in theÂ
- Open the
<NEW_BPS_HOME>/repository/conf/humantask.xml
file and changeGenerateDdl
tofalse
.You can see deployed humantask packages with version in console. Migration success message is printed once the migration completes successfully.<GenerateDdl>false</GenerateDdl>
- Copy database connector .jar files to the
<NEW_BPS_HOME>/repository/components/lib
directory. For example, ojdbc7.jar for the Oracle database can be copied here. - Run registry migration SQL in both registry db and user db (If you have registry and user databases point to same database then run only once).
- There are no changes required in the existing BPS databases. However, you must add a new databases for BPMN support introduced in this version of BPS. Do the following to achieve this.
- Create a new database to be used as the activity database for BPMN support.
- Run the corresponding database script for your DBMS found in
<NEW_BPS_HOME>/repository/conf/bps/bpmn/create
. You should execute all three scripts for that DBMS. - Now specify this datasource in
<NEW_BPS_HOME>/repository/conf/datasources/activiti-datasources.xml
. Instructions on adding a datasource can be found in Managing Datasources.
Using Human Task Explorer Web Application
A web application for Human Task user operations was introduced with the 3.5.0 release. In order to use this feature, Â include Human Task renderings in your task definitions. Users can still use their existing deployments (deployed in 3.2.0 or before) as it is, using the support provided in the carbon mgt-console.