Job Expiration work queue

Code

JobExpire

Categories

UIRunnable, Schedulable

Implementation

Work queue

Schedule

Once a day, at 6:00 a.m.

Class

JobExpirationWorkQueue.java

The Job Expiration work queue expires a job if the job has had no action taken on it for a configurable period of time. This process changes the job status from New, Draft, or Quote status to Expired. In the default configuration, the process expires submissions in these statuses that are at least seven days past the effective date of the policy.

To configure the expiration threshold as the number of days past the effective date or the creation date, modify the corresponding configuration parameter in config.xml:

  • JobExpirationEffDateThreshold
  • JobExpirationCreateDateThreshold

Enable expiration for a specific job type

About this task

The Job Expire process examines all jobs meeting the date criteria. It then expires those jobs for which job.canExpireJob returns true.

Procedure

  1. In the PolicyCenter Studio Project window, expand configuration > config:
    1. Open config.xml.
    2. Search for JobExpireCheck<JobType>, for example, JobExpireCheckAudit.
    3. Change the value from false to true.
  2. (Audit only) In the Project window, expand configuration > gwrc > gw > job:
    1. Open AuditProcess.gs.
    2. Modify the canExpireJob method to return true instead of false.

      Often, business requirements do not permit the expiration of Audit jobs. To expire the audit job type, you need override the AuditProcess.canExpireJob method.

Results

Forcing the expiration of all jobs for which expiration is possible improves the performance of queries related to jobs.

What to do next

See also