Defining a schedule specification
The <CronSchedule>
element in file scheduler-config.xml
describes when PolicyCenter is
to run the process.
<CronSchedule schedule_attributes/>Use this element to define a schedule_attributes value to specify the exact timing, such as once every hour or every night at a certain time. The schedule_attributes value is a combination of one or more of the following attributes:
Attribute |
Standard Values |
Default |
Example |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hours attribute, the
scheduler assumes a value of * and PolicyCenter runs the work queue process every hour.
Thus, Guidewire recommends that you provide a value for each scheduler
attribute. If you do not provide a value for a specific attribute, carefully
review that attribute's default value and determine if the default value meets
your business needs.
Useful attribute characters
Along with the standard values listed, there are some special characters that give you more flexible options.
Character |
Meaning |
|---|---|
|
Indicates all values. For example, |
|
Indicates no specific value. Used only for |
|
Specifies ranges. For example, |
|
Separates additional values. For example, |
|
Specifies increments. For example, |
|
Specifies the last day. Used only for |
|
Specifies the nearest weekday, use only with |
|
Specifies the nth day of the week within a month. For example, a |
These represent only some of the values that you can use for setting schedule.
Scheduler examples
The following table lists a few examples of how to work with the
<CronSchedule> element.
|
Example |
Description |
|---|---|
|
|
Run every day at 10 a.m. |
|
|
Run every night at midnight. |
|
|
Run at 15 and 45 minutes after every hour. |
|
|
Run every five minutes. |
|
|
Run at midnight on the first day of the month. |
|
|
Run at noon every weekday (without regard to the day of the month). |
|
|
Run at 10 p.m. on the last day of every month. |
|
|
Run at 10 p.m. on the second-to-last day of every month. |
|
|
Run 3 minutes after every other hour, 8:03 a.m. to 6:03 p.m., Monday through Friday. |
|
|
Run every 15 minutes after the hour, 12:15 a.m. to 8:45 a.m. and 6:15 p.m. to 11:45 p.m. |
|
|
Run at midnight on the last Friday of the month. |
|
|
Run at 4 a.m. on the second Wednesday of the month. |
The Quartz Enterprise Job Scheduler
These characters represent only some of the values that you can use for setting a
schedule. Guidewire bases the PolicyCenter scheduler
on the open source Quartz Enterprise Job Scheduler. The scheduler therefore uses the
same specification for schedule attributes that Quartz uses. To determine the exact
Quartz version, check the file name of the Quartz JAR file in PolicyCenter/admin/lib.
