ScheduleUsingExclusion.java
This sample creates a schedule named BusinessHourInSummer. The purpose is to show the use of both inclusion and exclusion periods.
This schedule is in-schedule from Monday to Friday, 8:00 AM to 5:59 PM. The hours between 12:00 PM and 2:00 PM in June, July and August are excluded.
This schedule definition uses both inclusion and exclusion period even though the same schedule could be created without using the exclusion period but using a more specific inclusion period.