Calendaric Function in VisualCronIf we define an interval trigger for every first workday of a month, it runs on days that are not workdays. As you can see on screenshot Trigger.png we defined a job „Winsure.EXE starten“. In this job we set a trigger for interval 1st workday every 1 month(s) starting from 27.4. Now the job get sheduled for run on Monday the 01.05.2017 which is not a working day in our country. The 1st may is a holiday. The behavior of the workday option seems to be incorrect. It just runs on every Monday to Friday.
If we now define a TimeException for 1st of may and activate it for our job the following happens. The job gets sheduled for 1st of may, but it will not run because of activated TimeExeption. Now we have no job run for may which is not correct either.
As you can see the combination of interval trigger and time exception does not work properly. The result we need is a job that runs every 1st day of a month that is a real workday.
We suggest the following solution for this issue.
Introduction of a calendar function for working days. The option workday in interval trigger now does not just run every monday to friday but it gets all run days from a rule set of the calendar. In the main server settings (ServerSettings.png) has to be a new option calendar. This opens a configuration for calendar rules.
These rules define working days in combination of weekdays and exceptions (maybe TimeExceptionCollections can be used?). The user just checks all weekdays (sometimes Saturday is a working day!) he needs job runs. After that he activates the exceptions. This System now defines what a trigger accepts as a workday and it is possible to define triggers that fit the needs described above.
Every time trigger should have a checkbox „OnlyRunOnWorkDays“.