Create a custom batch process
About this task
Creating a custom batch process is a multistep process:
Procedure
-
In Studio, edit the
BatchProcessTypetypelist and add a typecode to represent your custom batch process.Note: Creating this new typecode adds support for the new batch process within theBatchProcessInfoPCF and the IMaintenanceToolAPI web service. -
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. -
In Studio, in the Plugins editor, register your new plugin for the
IProcessesPluginplugin interface. - 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
