Show TOC

Procedure documentationCreating Local Functions Locate this document in the navigation structure

 

You use this procedure to create local function when the standard functions for a target field mapping do not fulfill your requirements, or if the expression becomes unclear due to the complexity of the mapping, you have the option of creating your own user-defined functions, also known as Local Functions.

You can create Java source text in this function, and it is saved in a local function library for the message mapping. The function is included in the Java coding that is generated for the message mapping as a Java method; it is visible in the expression editor by using Java method name just like a Standard Function.

Procedure

1. Integrate user-defined function with function library
  1. Create a user-defined function.

    .

  2. If you want to reuse the function in more than one message mapping, save the function in a local function library belonging to the mapping object.

    Note Note

    For more information about saving user-defined function in function library see Defining a Function Library

    The function libraries are independent of a message mapping.

    End of the note.
2. Implementing user-defined function in expression editor
  1. To use the user defined functions in message mapping, implement your function in either a local or an independent function library.

    Note Note

    For more information, see Creating Functions in Function Library.

    End of the note.
  2. Access your user-defined function in the expression editor.

  3. Test your function in the test environment.

    Note Note

    For more information see Testing

    End of the note.