Examples
This section includes examples of shifts that violate or pass this schedule compliance rule.
Example Configuration
The following examples use this configuration setting:
Max Hours Allowed: 8
Example 1 - Violation (long shift)
Employee A is scheduled to work:
- Monday 8:00 AM - 6:00 PM
- Tuesday 8:00 AM - 4:00 PM
- Wednesday 8:00 AM - 4:00 PM
- Thursday 8:00 AM - 4:00 PM
- Friday 8:00 AM - 4:00 PM
Schedule compliance returns a violation because Monday's shift exceeds the 8 hour limit.
Example 2 - Pass (multiple shifts/day)
Employee B is scheduled to work:
- Monday
- Shift 1- 8:00 AM to 12:00 PM
- Shift 2- 4:00 PM to 10:00 PM
- Tuesday 8:00 AM - 4:00 PM
- Wednesday 8:00 AM - 4:00 PM
- Thursday 8:00 AM - 4:00 PM
- Friday 8:00 AM - 4:00 PM
Schedule compliance does not return a violation. This is because this rule only applies to individual shifts and neither of these shifts (Shift 1 = 4 hours, Shift 2 = 6 hours) is longer than the maximum number of scheduled hours specified by the rule (8).
Example 3 - Violation
Employee C is scheduled to work:
- Monday
- Shift 1- 8:00 AM to 12:00 PM
- Shift 2- 4:00 PM to 10:00 PM
- Tuesday 8:00 AM - 4:00 PM
- Wednesday 8:00 AM - 4:00 PM
- Thursday 8:00 AM - 4:00 PM
- Friday 8:00 AM - 4:00 PM
- Saturday 8:00 PM - 6:00 AM
Schedule compliance returns a violation for the Saturday shift; even though the shift passes into the next day and the next week, all hours of a shift are associated with the day that the shift starts.
Example 4 - Pass (DAY_WEEK_STARTS)
Employee D is scheduled to work:
- Saturday 8:00 PM - 6:00 AM
- Monday
- Shift 1- 8:00 AM to 12:00 PM
- Shift 2- 4:00 PM to 10:00 PM
- Tuesday 8:00 AM - 4:00 PM
- Wednesday 8:00 AM - 4:00 PM
- Thursday 8:00 AM - 4:00 PM
- Friday 8:00 AM - 4:00 PM
Schedule compliance does not return a violation this week. However, schedule compliance will return a violation when you view the previous week for the Saturday shift.