Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

A custom method is used to call a function from a custom Java class in a package. It is declared and used globally for all target elements. 

...

  1. Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes.
  2. Click the Node tab displayed in the Mapping Graph Area. All tabs of the Node tab are displayed. Click Mapping Rules tab.
  3. Select a target element. This displays the selected target element node in the Mapping Graph Area.
  4. Double-click the required custom method under Custom Methods in the Parameters Panel. The selected method node is displayed in the Mapping Graph Area.


    If the custom method is defined with more than 4 parameters, then double-clicking the custom method will display the warning message. Once you click OK, you need to define the mapping using Textual Rules.

  5. Click two source elements. The selected source nodes are displayed in the Mapping Graph Area.
  6. Create a link from the output of the first source element to the first input of the custom method node.
  7. Create a link from the output of the second source element to the second input of the custom method node.
  8. Create a link from the output of the custom method node to the input of the target element.

  9. Click the Apply Mapping (  ) button. This maps the custom method to the target element.
  10. Save the mapping activity and exit the Data Mapper.