Create a custom batch process

About this task

Creating a custom batch process is a multistep process:

Procedure

  1. In Studio, edit the BatchProcessType typelist and add a typecode to represent your custom batch process.
    Note: Creating this new typecode adds support for the new batch process within the BatchProcessInfo PCF and the IMaintenanceToolAPI web service.
  2. Create a class that extends the BatchProcessBase class (gw.processes.BatchProcessBase). The only method you must override is the doWork method, which takes no arguments. Perform your batch process work in this method.
  3. In Studio, in the Plugins editor, register your new plugin for the IProcessesPlugin plugin interface.
  4. To 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.

What to do next

See also