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

  1. Open Guidewire Studio.
  2. In the Studio Project window, expand configuration > config > Extensions > Typelist.
  3. Open BatchProcessType.ttx.
  4. Click the green plus button, , to add a typecode.
  5. In the panel of fields on the right, specify appropriate values for the following fields:
    OptionDescription
    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.
  6. Select the newly added typecode.
  7. Select Add new… > typecode > category from the right-click context menu.
    This action adds a new category element under the selected typecode.
  8. For this category, define the following fields:
    OptionDescription
    typelist Select BatchProcessTypeUsage from 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.