Migrate a Version 10.4 Project From the Command Line

The Oracle Policy Modeling migrator command-line tool provides a means to migrate a project from Policy Modeling 10.4 to the latest version using the command line.

The Policy Modeling migrator command-line tool is executed from the command line using the following format:

OPMMigrator.exe <project path> <target folder> [-pn=<project name>] [-rewrite-excel-numbers] [-h]

The parameters used with the migrator command-line tool are explained in Table 1.

Table 1. The migrator command-line tool parameters
Parameter Description
<project path> The path to the Policy Modeling 10.4 project file to be migrated.
<target folder> The path to the new project that will contain the migrated project.
-pn=<project name> Sets the project name of the migrated project. If not provided, the project name will be the same as the 10.4 project name.
-rewrite-excel-numbers Migrates numbers in Excel workbooks as the display value (which is the value used in 10.4 projects). If not provided, numbers in Excel workbooks will be migrated as the actual value of the cell, which may be slightly different to the display value.
-h Prints the help message. If provided, all other parameters are ignored.

Example 1 - Migrate project

To migrate the TaxBenefit project from the C:\OldProjects directory into the C:\NewProjects directory, you could use the following command:

"C:\Program Files\Oracle\Policy Modeling\26A\bin\OPMMigrator.exe" C:\OldProjects\TaxBenefit.xprj C:\NewProjects

Example 2 - Migrate and rename project

To migrate the OldRules project from the C:\OldProjects directory into the C:\NewProjects directory and rename it as the NewRules project , you could use the following command:

"C:\Program Files\Oracle\Policy Modeling\26A\bin\OPMMigrator.exe" C:\OldProjects\OldRules.xprj C:\NewProjects -pn=NewRules