Custom batch processes
Succeed Insurance needs to run some custom business logic in the middle of the night in order to provide reporting for the business. They are aware that InsuranceSuite comes with predefined batch processes. They have reviewed the existing batch processes and none of them meets Succeed Insurance's requirements. Because of that, Succeed Insurance needs to understand how to create a custom batch process.
Learning Objectives
The learning objectives for this module are:
- Understand the different types of batch processes.
- Understand the steps to create a new custom batch process.
- Understand how to run a batch process manually in an InsuranceSuite application.
Types of batch processes
There are two types of batch processes. Predefined and Custom.
Predefined batch processes are those that are defined by Guidewire and come with InsuranceSuite. Some examples are Claim Exception, Policy Renewal and Account inactivity.
Custom batch processes are those that are created by integration developers.
Creating a custom batch process
The steps for creating a custom batch process are as follows:
Add the name of the batch process to the BatchProcessType typelist. When doing this, be sure to add the execution options.
Create a Gosu class that extends BatchProcessBase.
Implement the business logic in the doWork method of the newly created class.
Implement and register a new IProcessesPlugin plugin if needed. Your implementation probably already has one. If so add your batch process to the existing Gosu class. If not, follow the instructions found here on how to perform this step.
Schedule your custom batch process to run regularly on a schedule instead of on demand. Add an entry for the batch process to the XML file scheduler-config.xml.
For more information about these steps, refer to this documentation.
An example of a custom batch process can be found here.
Running a batch process
Batch processes that have been configured to run from the User Interface can be run from the system tools batch admin screen.
This documentation site describes the batch process screen.
Tutorial
The following video shows how to create a new custom batch process.
Student Workbook
To practice what you have learned try out this exercise.
Knowledge Check
To validate your knowledge by completing this Knowledge Check of the information you just read.
Was this page helpful?