Versions Compared

Key

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

Exception handler scripts are basically Java code, that is invoked if an exception or error occurred during the execution of a process flow. There are three types of Exception handler scripts:

These scripts can be created at the global level (for all the activities in the process flow) or at the activity level (for a specific activity). If an exception or error occurred during the execution of a process flow, the activity level exception handler script is invoked first. If an activity level exception handler script is not created for that activity, then only global level exception handler script is invoked.

...

    • 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.

Anchor
Creating Global Exception Handler
Creating Global Exception Handler
Creating Global Exception Handler Script

Follow the steps to create a global exception handler script:

  1. In Web Process Designer, click View Process Flow Properties icon and select EXCEPTION SCRIPTS tab.

     

  2. Select the required exception handler option, for example, Service.
  3. Select the interpreter type.

     

    Interpreter Type
    Description
    Script

    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.


  4. Click Done.

Anchor
Creating Activity Exception Handler
Creating Activity Exception Handler
Creating Activity Exception Handler Script

Follow the steps to create an Activity Exception Handler Script:

...