Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: 'Restricting ... Starts' updated

...

As our Included Frequencies are valid to 2018, holidays should also be added for that year.

Reselect To do this reselect the Country field, change the Year to 2018 and then click on Add Frequency again.

...

In the Add Frequencies modal window which will now open, select the Recurring Days tab, complete the fields as shown in the next screenshot and click Add Frequency.

Image Removed

The Valid From setting is particularly important as it defines the starting point for the calculation of the recurring days. In the screenshot shown below it can be seen that two Every 3rd day frequencies have been set - one for December and one for the whole of 2018.

Image Added

Now click Click Close and the Every 3rd Day Restriction will be added to the Set Run-time configuration as shown below:

...

The Every 3rd Day Restriction effectively functions as a filter on the wkg_day_mo-fr-hol Calendar. It means that the Order will run on every 3rd day that has been defined as a Working Day and that all other days will simply be ignored. 

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

...

  • With the Edit XML function in the Set Run-time modal window:
  • With the Calendar View window, which is accessed using the Order's Show Calendar function:

The Valid From 1st Jan 2018Dec 2017 setting in the 2017 Every 3rd day Restriction filters out all dates from dates for 2017 the current month but provides a clear starting point for calculating execution dates in December. Similarly the Valid From 1st Jan 2018 setting in the 2018 Every 3rd day Restriction filters provides a clear starting point for calculations for that year. This also means that in the changeover from the 2017 restriction to the 2018 only one working day will be left between execution on the 28th of December and on the 2nd of January.

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.

...