...
- Create a file (e.g.
./config/live/holidays.xml
) with content such as the following: Code Block language xml title Specification of a specific day as a holiday <?xml version="1.0" encoding="ISO-8859-1"?> <holidays> <holiday date="2016-03-15"/> </holidays>
- Use JOE and open the Run Time -> Non Working Days function.
- There you can apply the holidays file to individual Jobs or Orders.
- The checkbox "from Hot Folder" has to be active.
- Type holidays.xml in the combobox (the full path below the
live
folder must be entered) and click Add File
- Once again, the Holidays will only apply for each Job/Order which you have specified the file for.
- There you can apply the holidays file to individual Jobs or Orders.
...
- Configure the Holidays in the ./config/scheduler.xml file
- In this case the Holidays are used by all Jobs and Orders.But note that changes in the scheduler.xml require a JobScheduler restart.
- You can either:
- Add the following to the scheduler.xml file using a text editor:
Code Block language xml title Specification of Saturday and Sunday as holidays every week <holidays > <weekdays > <day day="6"/> <day day="7"/> </weekdays> </holidays>
Please consider Note that the correct sequence order of elements in the ./config/scheduler.xml when adding a
<holidays>
element, for details see Reference Documentation has to be followed when manually adding elements - the order is shown in the Reference Documentation XML Configuration Page.
Use JOE to configure the scheduler.xml file using the Open JobScheduler Configuration button and navigating to the JobScheduler's config folder:
- Note also that:
- changes in the scheduler.xml require that the JobScheduler is restarted.
- Add the following to the scheduler.xml file using a text editor:
2. SCHEDULES
You can also specify Non Working Days for Schedules. To do this you create a Schedule as a separate object and assign it to the Run Time of a Job or Order.
...