Copying and Updating Groovy Scripts of Business Rules and Template

After you rename dimensions, make copies of the Groovy scripts for the business rules and the template affected by the renaming process. To update the scripts, replace every mentions of the old dimension name with the new dimension name.

Copy and update the following business rules:

Also, copy and update the NFS_Create Forecast Version_T template.

To update the Groovy scripts of the business rules and template:

  1. Click the Navigator icon The Menu icon, and then under Create and Manage, click Rules.

    The Calculation Manager window opens to the System View tab.

  2. Click the expand arrow Expand arrow next to Planning, NetSuite, NSP_NFS, and Rules.

  3. To make a copy of a business rule:

    1. Right-click the business rule that you want to update and select Copy To.

    2. In the Copy To window, enter a new name for the business rule.

    3. Keep the default selections for Application Type, Application, and Cube.

    4. Click OK.

  4. Repeat step 3 for the other business rules.

  5. To update the Groovy script for a business rule:

    1. Double-click the business rule that you want to update.

    2. The business rule opens in Rule Designer. If you see a message, click OK.

    3. Use the Find search field to look for every mention of the original name of the dimension in the script. Change each one to the new dimension name.

      Important:

      If you enabled multiple custom dimensions, repeat step 5c for each one.

      Tip:

      Enclose your search in quotation marks to find exact matches for the dimension name.

      For example, if you changed the Department dimension, search for "Department" to find all mentions of the original name. Then, change each one to "New Department".

    4. To save your changes, click the Save icon Save icon.

    5. Click the Validate and Deploy icon Validate and Deploy icon.

      If deployment works, you'll see a confirmation message. Click OK.

  6. Go back to the System View tab in Calculation Manager, and repeat step 5 for the other business rules.

  7. To make a copy of the NFS_Create Forecast Version_T template:

    1. From the System View tab, click the expand arrow Expand arrow next to Templates.

    2. Right-click NFS_Create Forecast Version_T and select Copy To.

    3. In the Copy To window, enter a new name for the template.

    4. Keep the default selections for Application Type, Application, and Cube.

    5. Check the Copy Shared Components box.

    6. Click OK.

  8. To update the Groovy script for the NFS_Create Forecast Version_T template:

    1. Double-click NFS_Create Forecast Version_T.

    2. The template opens in Template Designer. If you see a message, click OK.

    3. Use the Find search field to look for every mention of the original name of the dimension in the script. Change each one to the new dimension name.

      Important:

      If you renamed multiple dimensions, repeat step 8c for each one.

    4. To save the changes, click the Save icon Save icon.

    5. Click the Validate and Deploy icon Validate and Deploy icon.

      If deployment works, you'll see a confirmation message. Click OK.

Related Topics

General Notices