Batch process base class

Your custom batch process must extend the BatchProcessBase Gosu class. You must override the abstract doWork method, which takes no arguments. You can override other methods, but it is not strictly necessary because the base class defines meaningful defaults.

The doWork method does not have a bundle to track the database transaction. To modify data, you must use the Transaction.runWithNewBundle method to create a bundle.

Ensure that your main doWork method frequently checks the TerminateRequested flag. If it is true, exit from your code. For example, if you are looping across a database query, exit from the loop.

Important: PolicyCenter calls the requestTermination method in a different thread from the thread that runs the doWork method of your batch process.