Dynamically Loading Custom Methods
Adeptia supports dynamic loading of custom methods in the Data Mapper. It loads the custom methods available in the Custom Classes folder, under the Global Methods node in the Parameters Panel. This enables you to access any custom method from the Data Mapper itself, without any need to specify method parameters, such as class name, method name and the number of arguments in the Data Mapper applet.Â
Steps to dynamically load Custom Methods
Copy all the class files in the Custom Classes folder and then restart the kernel.
The current implementation of Global Methods does not support package hierarchy. So all class files that are directly placed in the Custom Classes folder, will be visible through the Global Methods node in the Parameters Panel.
Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes. The Global Methods node is already displayed in the Parameters Panel, each time Data Mapper is opened (see Figure 538).
Figure 538: Global Methods NodeExpand the Global Methods node to display all the class files present in the Custom Classes folder (see Figure 539).
Figure 539: List of Class Files in Custom Classes Folder- Expand a class node to display all custom methods available for that class (see Figure 540).
Figure 540: Custom Methods in a Custom Class
- You can view more information (such as return type and parameter types) about a custom method as a tool-tip, by placing the cursor over the custom method node.
- You can then map the custom method to a target element by double-clicking the custom method and then mapping by providing the input parameters.
Â
Â