Adeptia Connect supports dynamic loading of custom methods in the Web Mapper. It loads the custom methods available in the customClasses folder, under the Method > Global node in the Parameters panel. This enables you to access any custom method from the Web Mapper itself, without the need to specify method parameters, such as class name, method name and the number of arguments.
Steps to dynamically load Custom Methods
Copy all the class files in the customClasses folder and then restart the webrunner and runtime microservices.
Important 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.
Expand the Global Methods node to display all the class files present in the customClasses folder.
You can view more information (such as return type and parameter types) about a custom method as a tooltip, by placing the cursor over the icon of Custom Method node.
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.