Define a typecode for a custom batch process
About this task
Before you begin developing the Gosu code for your custom batch process, you need to define the
batch process type. For your custom type, you need to add a typecode for it in the
BatchProcessType typelist. The constructor of your batch process
implementation class requires the typecode as an argument.
Procedure
- Open Guidewire Studio.
- In the Studio Project window, expand .
- Open BatchProcessType.ttx.
-
Click the green plus button,
, to add a typecode. -
In the panel of fields on the right, specify appropriate values for the following fields:
Option Description code Specify a code value that uniquely identifies your custom batch process. This code value identifies the custom batch process in configuration files. name Specify a human readable identifier for your custom batch process. This name appears for batch processing type on the Server Tools Batch Process Info screen. desc Provide a short description of what your custom batch process accomplishes. This description appears for your batch process on the Server Tools Batch Process Info screen. - Select the newly added typecode.
-
Select from the right-click context menu.
This action adds a new
categoryelement under the selected typecode. -
For this category, define the following fields:
Option Description typelist Select BatchProcessTypeUsagefrom the drop-down list.code Select one of the available choices from the drop-down list. You must add at least one category or your batch process cannot run.
Results
Creating this new typecode adds support for the new batch process within the
BatchProcessInfo PCF and the
IMaintenanceToolAPI web service.
