...
The class must implement PluginExecutor interface.
Code Block public class <class_name> implements PluginExecutor
The method should accept only one parameter and that must have an object of ExecutionEvent.
Code Block public boolean <method_name>(ExecutionEvent event) throws Exception
- The method must be public.
Creating Global Exception Handler Script
Follow the steps to create a global exception handler script:
In Web Process Designer, click View Process Flow Properties icon and select EXCEPTION SCRIPTS tab.
- Select the required exception handler option, for example, Service Exceptionand click Add icon.
On Service Exception Script window, select Select the interpreter type.
Interpreter TypeDescriptionScript In this option, you need to define the Java code for the execution of the process flow. Using this option will decrease the execution performance of the process flow.
Custom API It is recommended to use this option. Using this option will increase the execution performance of the process flow. In this option, you need to select the class and its method for the execution of the process flow. The process flow will be executed on the basis of the code implemented in the selected method.
- Click Done.
Creating Activity Exception Handler Script
Follow the steps to create an Activity Exception Handler Script:
In Graph Canvas area, select the activity and click Options from Context pad.
Select Service Exception option form the list to open Service Exception Script window.
On the Service Exception Script window, select the interpreter type.
Interpreter TypeDescriptionScript In this option, you need to define the Java code for the execution of the process flow. Using this option will decrease the execution performance of the process flow.
Custom API It is recommended to use this option. Using this option will increase the execution performance of the process flow. In this option, you need to select the class and its method for the execution of the process flow. The process flow will be executed on the basis of the code implemented in the selected method.
useInfo You can
touse <CTRL>+<Space Bar> to view pre-defined template of Java Code that can be used while creating Java Condition. You can select any of them and edit it according to your requirement. - Click Done.