Scheduled Duration Condition

The Scheduled Duration Condition queries an employee’s schedule to determine how many minutes the employee is scheduled to work. The condition then compares the actual schedule duration to a specified duration. For example, the condition can be used to check that the employee is not scheduled to work more than a certain time without unpaid breaks.

This condition uses schedule information from the employee schedule (EMPLOYEE_SCHEDULE) table. As an alternative, you can use the Schedule Detail Duration Condition to use information from the employee schedule detail (EMPLOYEE_SCHED_DTL) table for the comparison.

See Schedule Detail Duration Condition.

Parameters In

Name Description
ApplyToAllShifts If true, duration for all schedules of the current work date will be summed. This parameter must be true if a duration for all schedules is required
CompareToScheduledDuration The value that will be compared with the actual duration, such as 480 minutes.
Operator Operator that is used for the comparison.

Supported operators are =, <>, <, <=, >=, and >.

Example

If an employee's schedule is:

  • 10:00 to 18:00
  • 20:00 to 22:00

And the Scheduled Duration Condition parameters are set to:

> 500 ApplyToAllShifts, False

The condition evaluates to false as the employee has 18:00-10:00=480 minutes of primary schedule (480 < 500).