Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Schedule
Schedule of evaluation. 

Script
Script to execute when scheduled event occurs. 

Schedule Rules

Task scheduling consists of repeating intervals and schedule rules.

Interval defines the duration for next scheduled time and may be defined in day, hour or minute units.

Schedule rules define the time frames that should be excluded from repetition intervals. When schedule rules are not defined, the task is repeated within the 7x24 time frame. Calendar rules can be defined as Daily, Weekly, Yearly, or Annually and can be added successively to define rule chains.

Common Schedules

Daily Schedule

Performs every day, exactly at 16:0100:00.

Info

Repeat Period: 10 Minute

Code Block
languagexml
<Schedule Name="">
    <Rule Type="Daily">
        <Start>16:

...

00:00</Start>
        <End>16:01:

...

00</End>
        <Invert>True</Invert>
    </Rule>
</Schedule>

Weekly Schedule

Performs every day except Sunday and Saturday.

Info

Repeat Period: 1 Day

Code Block
languagexml
<Schedule Name="">
    <Rule Type="Weekly">
        <DayOfWeek>Sunday</DayOfWeek>
        <DayOfWeek>Saturday</DayOfWeek>
    </Rule>
</Schedule>

Performs only once on Mondays.

Info

Repeat Period: 1 Day

Code Block
languagexml
<Schedule Name="Weekly Leave Request Report">
    <Rule Type="Weekly">
        <DayOfWeek>Sunday</DayOfWeek>
        <DayOfWeek>Tuesday</DayOfWeek>
        <DayOfWeek>Wednesday</DayOfWeek>
        <DayOfWeek>Thursday</DayOfWeek>
        <DayOfWeek>Friday</DayOfWeek>
        <DayOfWeek>Saturday</DayOfWeek>
    </Rule>
    <Rule Type="Daily">
        <Start>09:05:00</Start>
        <End>09:05:59</End>
        <Invert>True</Invert>
    </Rule>
</Schedule>

Yearly Schedule

Performs every 1st day in all months (Example: 20XX-XX-01)

Info

Repeat Period: 1 Day

Code Block
languagexml
<Schedule Name="">
    <Rule Type="Yearly">
        <Day>1</Day>
   </Rule>
</Schedule>

Performs at the beginning of the 4th month of every year (Example: 20XX-04-01)

Info

Repeat Period: 1 Month

Code Block
languagexml
<Schedule Name="">
    <Rule Type="Yearly">
        <Month>4</Month>
   </Rule>
</Schedule>

Performs on the 10th day of a 4th month of every year (Example: 20XX-04-10)

Info

Repeat Period: 1 Month

Code Block
languagexml
<Schedule Name="">
    <Rule Type="Yearly">
        <Day>10</Day>
        <Month>4</Month>
   </Rule>
</Schedule>

Annual Schedule

Performs It performs on a yearly basis. It basically excludes the given date given and runs the scheduled task every day except the given one.

Code Block
languagexml
<Schedule Name="">
    <Rule Type="Annual">
        <Date>2000-02-25T00:00:00.0000000+00:00</Date>
   </Rule>
</Schedule>