Process Completion Monitor batch process

Code

ProcessCompletionMonitor

Categories

UIRunnable, Schedulable

Implementation

Batch process

Stoppable

No (single phase process)

Schedule

Not scheduled

Class

ProcessCompletionMonitor.java

The Process Completion Monitor batch process runs at schedulable intervals and examines the ProcessHistory table for all completed work queues and batch processes.

For each completed work queue that it finds, Process Completion Monitor:

  • Determines if all the work items in that work queue have either completed or failed.
  • Calls the IBatchCompletedNotification plugin implementation on a process if the process is complete and has no remaining available or checked-out work items.
  • Sets ProcessHistory.NOTIFICATIONSENT to true, to prevent the process from invoking the IBatchCompletedNotification plugin implementation more than a single time for any given process.

The IBatchCompletedNotification interface has a completed method that you can override to perform specific actions after a work queue or batch process completes a batch of work.

By default, Guidewire does not add an entry for this process to scheduler-config.xml in the base configuration. To schedule this process, add an entry for it to scheduler-config.xml.

See also