Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Adeptia Connect supports dynamic loading of custom methods in the Web Mapper. It loads the custom methods available in the Custom Classes customClasses folder, under the the Method > Global node  node in the Parameters Panelpanel. This enables you to access any custom method from the Web Mapper itself, without any the need to specify method parameters, such as class name, method name and the number of arguments. 

Steps to dynamically load Custom Methods

  1. Copy all the class files in the Custom Classes customClasses folder and then restart the webrunner and runtime microservices.

    InfoThe 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 Method > Global node in the Parameters Panel

    Tip
    titleImportant tip

    To ensure better security, you can place the custom classes in a JAR and then place the JAR in the customClasses folder in the shared PVC, as shown in the example below.

    /shared/customClasses/<JAR name>

    Furthermore, if you want the system to read the custom classes only from the JAR files, set the value for the property customClasses.readMode.jarOnly to true. The default value for this property is false. You can find this property by navigating to Account > Settings > Microservice Settings > WebRunner.

    Ensure that the source and destination layout are loaded and all their elements are listed under their respective nodes. 

  2. Expand the Global Methods node to display all the class files present in the Custom Classes folderthe customClasses folder.



    You can view more information (such as return type and parameter types) about a custom method as a tool-tiptooltip, by placing the cursor over the icon  of Custom Method node.
  3. You can then map the custom method to a destination element by double-clicking the custom method and then mapping it by providing the input parameters.


Panel
borderStylesolid
titleYou may be interested in...
What is new
Application architecture
Key terms
Install
Usage scenarios