Examples

This section includes examples of shifts that violate or pass this schedule compliance rule.

Example Configuration

The following examples use these configuration settings:

Max Days Allowed: 5

DAY_WEEK_STARTS: Sunday

Example 1 - Pass

Employee A is scheduled to work:

  • Monday 8:00 AM - 4: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 because the total work days do not exceed the limit.

Example 2 - Violation (Week Start/Day Start)

Employee B is scheduled to work:

  • Monday 8:00 AM - 4: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 10:00 PM - 4:00 AM

Schedule compliance returns a violation because the Saturday/Sunday shift belongs to the current week.

Example 3 - Pass (Week Start/Day Start)

Employee C is scheduled to work:

  • Saturday 10:00 PM - 4:00 AM
  • Monday 8:00 AM - 4: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 because the Saturday/Sunday shift belongs to the previous week.