Custom Logic/Coding
Last updated
Last updated
Microflow is designed to be a medium for integrating multiple systems. The built-in tool itself has a number of helper nodes. It also provides a Java node to execute any custom logic needed by the application. Add custom logic to Microflow To add custom logic simply create a microflow and add the java node to it. The developer can implement the custom logic in java and export it as a jar file. Once you have the jar file you can upload it to the microflow java node and specify the class and method to be invoked from a microflow. Users can also map the data from microflow to the java class and back. Please remember to upload any dependent jar files independently to the flow using the upload jar file utility.
The below section explains the steps to configure the Java node
Drag and drop the Java node activity to the diagram panel Choose the Jar file that you want to execute in ‘Jar Name’ or select from an existing list of uploaded jars Click on Get Class Name and choose the custom java class name in the ‘Class Name’ field Select the desired method to be called in ‘Method Name’ Click Open Mapping Parameter to map the parameters to the java method and the data returned from java to the process parameter. Click ‘Done’ to save your java node setting