Migrating Mapper Functions to XPath 2.0 Using the CLI

After the project is migrated to the XPath 2.0, you can use the migrateMapperFunctions operation of the studio-tools utility to fix common Mapper Function issues.

This command fixes the typecast errors, if the data type can be converted using the XSD: constructor functions. It also fixes the issues that displays the error: XSLT is out of sync with schema component properties.

Important: Always back up your project before running the Mapper Function Migration wizard.
    Procedure
  1. Navigate to BE_HOME/studio/bin/.
  2. Open the studio-tools utility.
  3. On the command prompt, run the following command:
    studio-tools -core migrateMapperFunctions -p <studioProjDir>

    Options

    The following table describes the command parameters:

    Studio Tools Options for Migrating Mapper Functions
    Option Description
    -core migrateMapperFunctionsSpecifies the migrateMapperFunction command. The command attempts to fix all SLT and XPath mappings in the project to be XPath 2.0 compliant.
    -pThe file path to the TIBCO BusinessEvents Studio project to be migrated.
    Note: You cannot undo the changes after running this command.
    For example:
    studio-tools -core migrateMapperFunctions -p c:\MyWorkspace\SomeProj