Creating Global Functions: Explained

To create a global function, do the following:

  1. Click Navigator, and select Application Composer.

  2. In the Overview window, click Global Functions.

  3. For each Groovy script file do the following:

    1. Select the row, then click the Action drop-down list, and select Add.

      The Create Global Function window appears.

    2. In the Function Name field, enter the function name from the first comment in the Groovy file.

    3. From the Returns drop-down list, select the return type specified in the second comment in the Groovy file.

    4. In the Parameters list, click the Action drop-down list, then click the Add icon.

    5. Enter the name and type for the first parameter listed in the comments in the Groovy file.

    6. Repeat the previous steps for the remaining parameters.

    7. Copy the Groovy code from the file into the Function Body window.

    8. Click Validate to validate the function.

      Note: When validating, certain functions trigger warnings. This is expected; you can click OK to continue. However, if an error is triggered, then contact Oracle Global Customer Support.
    9. Click Save and Close.