Job Expiration work queue
|
Code |
|
|
Categories |
|
|
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:
JobExpirationEffDateThresholdJobExpirationCreateDateThreshold
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
-
In the PolicyCenter Studio Project
window, expand :
- Open config.xml.
-
Search for
JobExpireCheck<JobType>, for example,JobExpireCheckAudit. -
Change the value from
falsetotrue.
-
(Audit only) In the Project window, expand :
- Open AuditProcess.gs.
-
Modify the canExpireJob method to return
trueinstead offalse.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
