Versions Compared

Key

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

...

Note that the On Holiday setting - will not function with the calendar configured in the first half of this article. On Holiday only works when a Non-Working Day calendar is used to configure holidays. Such a configuration will be described in the Calendar Use Cases - Managing Working Day and Non-Working Day Calendars article.

The next screenshot shows that two Single Start Periods have been configured - at 15:00 and at 21:00.

...

Note that in the current calendar configuration (described in the first part of this article), Working Days were defined as being Monday to Friday, less the excluded Holidays. Holidays were not specifically defined. This means that every 3rd Working Day will be quite rigidly interpreted and that more complex handling of holidays (such as execution on the preceding or succeeding day) is not possible. A more flexible configuration using separate Working and Non-Working Day Calendars will be described in the Calendar Use Cases - Managing Working Day and Non-Working Day Calendars Article. 

Configuration Procedure

...

As already noted above, in this article, Holidays holidays have been specified in this Calendar as excluded Working Days and not as Non-Working Days, effectively excluding any . This effectively effectively excludes a more sophisticated behavior around holidays, such as execution on the preceding day. See the Calendar Use Cases - Managing Working Day and Non-Working Day Calendars article for an alternative approach that allows execution to be moved.

Checking the Configuration

...

Note that as the 1st of January is not a Working Day, the Order will be first executed on the 2nd. Execution proceeds regularly until the 15th of January, which is a Non-Working Day (Martin Luther King day) and therefore ignored, with the next execution taking place on the 16th. 

Comparison with Behavior defined using Multiple Calendars

The approach described in this article has the advantage of a single Calendar being used to define the days on which Job and Order execution will occur. This approach allows regular execution of Jobs and Orders - i.e execution every business day or every x-th business day - to be suppressed. This approach does not allow more sophisticated behavior such as execution on the preceding day to be implemented around non-business days such as holidays. See the Calendar Use Cases - Managing Working Day and Non-Working Day Calendars article for an alternative approach that allows execution to be moved around non-business days.