Cloud Software Group, Inc. EBX®
Documentation > Migration Guide
Navigation modeDocumentation > Migration Guide

Step 2: Preparing the repository

Introduction

It is strongly recommended to perform all migration tasks in at least a test and pre-production environment prior to migrating a production environment. Once a server with the EBX® 6 artifacts is started, the repository migration begins automatically; the process is not reversible. Migration can only complete successfully if the data models in the repository contain no errors.

Note

You might want to use a copy of, or one that closely resembles, the repository in production. This will allow you to estimate the effort needed to prepare the production repository and allow you to see how long the automatic migration process will take, so you can plan downtime accordingly.

To prepare your repository for migration, complete the steps in the following tasks:

Task 1: Create a backup

The migration process is not reversible. With this in mind it is important to backup your repository in its current state.

To back up your repository:

  1. Shut down the application server hosting the EBX® 5 instance.

  2. Back up your EBX® 5 repository. Include any relational database objects whose name starts with the current repository prefix. This prefix is specified in the ebx.properties file under ebx.persistene.table.prefix.

  3. Back up and delete any EBX® logs, or move them to another folder.

  4. Back up add-on configurations:

    If you have the TIBCO EBX® Data Model and Data Visualization Add-on, or the TIBCO EBX® GO Add-on, you will need to export the configuration archive and import it again after the migration completes. See Manually migrating add-ons for instructions.

Task 2: Prepare the repository

It is important to clean your EBX® 5.9 environment to accelerate the migration process, especially for repositories with large volumes of data. This process requires administrative access to EBX® as the processes must be performed in the EBX® user interface.

You should clean the following repository elements:

Dataspace cleanup

Closed dataspaces are deleted during migration. You must re-open any dataspace you want to keep prior to migration. We recommend that any closed dataspaces that will not be kept are deleted and purged prior to migration as this can help optimize the migration processing time.

To manage your dataspaces:

  1. Navigate to Administration > Dataspaces > Dataspaces/snapshots.

  2. Reopen or delete dataspaces:

    • To delete: Select the dataspaces to delete and from the table's Actions menu select Delete dataspaces and history recursively.

    • To reopen: Select the dataspaces to delete and from the table's Actions menu select Reopen dataspaces and snapshots.

    /dataspace-cleanup.png

Workflow cleanup

Workflow cleanup is an optional step. However, all workflow tables are automatically migrated and can increase the migration processing time as these tables can be large. If your business use case does not require workflow history, or if it could be externalized in an audit trail "at rest" database, purging the tables can speed up the migration process.

To delete completed workflows:

  1. Navigate to Administration > Workflow > Execution of workflows > Workflows.

  2. Create a filter on the table where Current state is set to Completed workflow.

  3. Select all records and from the table's Actions menu, select Terminate and clean this workflow.

    /workflow-clean-1.png

To delete workflow history:

  1. Navigate to Administration > Workflow history > Workflows.

  2. Select all records to delete and from the table's Actions menu select Clear from selected workflows.

    /workflow-clean-2.png

Data model cleanup

In order for successful completion of the migration process, all data models used by the repository's datasets must compile without errors. This strict requirement is in place to prevent loss of data and to ensure a consistent repository state at the end of the migration process. Additionally, any artifacts from discontinued add-ons should be removed from data models.

To clean your data models, see the topics addressed in the following sections:

Resolve data model errors

To resolve data model errors:

  1. Locate data model errors by checking the following locations:

    • Navigate to Administration > Technical configuration > Modules and data models and look for any data model errors.

      /dataModel-cleanup.png

    • Open the kernel.log file and search for error [-].

      /errorExample.png

  2. Perform the actions required to fix the data model errors. Alternatively, if the data model is no longer in use, you can delete it. However, this must also be done in any dataspaces that define a dataset based on the data model, including any child dataspaces.

  3. Restart the application server and double check the Modules and data models table, and the logs to be sure no models are still in a state of error.

Includes for discontinued add-ons

The TIBCO EBX® Match and Merge Add-on (DAQA) might be included in a data model. If this is the case, the include instruction must be removed from the data model as well as any elements based on its data type.

To address discontinued add-ons:

  1. Open the kernel.log file and search for any data model compilation report that begins with ****** Schema. Check whether the report contains the following info line: Include: Module: ebx-addon-daqa.

    In the following example, the custom module ebx-sample-test contained the inclusion in the Persons model:

    /daqa-dataModel-includes.png

  2. Open your data model's XSD and remove the following: /WEB_INF/ebx/schema/ebx-addon-daqa-types.xsd.

    /daqa-xsd-remove.png

  3. Search for and remove any elements with a defined type of DaqaMetaData.

    /daqa-element-remove.png

  4. Search for and modify any other elements that were using the elements modified in the step above.

    /daqa-other-remove.png

Java extensions for discontinued add-ons

Any Java extension provided by a discontinued add-on must be removed from data models. You must check all XSD files and delete any reference to the non-exhaustive list below:

In addition to checking for the items listed above, it is a good idea to check toolbars defined by the data model as they can sometimes include user services from the add-ons.

URL policy

The URL policy from 5.9 is deprecated and if you do not update it, issues can occur when attempting to access the UI. To ensure the URL policy conforms to 6.x requirements, navigate to Administration > User interface > User interface configuration > Advanced perspective > Interface configuration > URL Policy and revert any existing settings. To update the URL computing configuration, you can edit the ebx.properties file. See URLs computing for more information.

Task 3: Back up your clean repository

Back up your current repository:

  1. Shut down the application server hosting the EBX® 5.9 instance.

  2. Back up your 5.9 repository. Include any relational database objects whose name starts with the current repository prefix. This prefix is specified in the ebx.properties file under ebx.persistene.table.prefix.

  3. Back up and delete any EBX® logs, or move them to another folder.

  4. Back up add-on configurations:

    If you have the TIBCO EBX® Data Model and Data Visualization Add-on, or the TIBCO EBX® GO Add-on, you will need to export the configuration archive and import it again after the migration completes. See Manually migrating add-ons for instructions.

Documentation > Migration Guide