Creating Object Functions: Explained

The object functions for the integration are defined in Groovy script files. These files are listed along with the specific objects that must be created or configured. Use the following general procedure to create object functions.

  1. Click Navigator, and select Application Composer.

  2. Expand the object for which you want to create a function, and then click Server Scripts.

  3. In the Server Scripts window, click the Object Functions tab.

  4. For each Groovy script file do the following:

    1. Click the Action drop-down list, and select Add.

      The Create Object 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 Add Parameter 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 may trigger a warning. This is expected; you can click OK to continue. However, if an error is generated, then contact Oracle Global Customer Support.
    9. Click Save and Close.