Day Off Index Condition

com.workbrain.app.ta.conditions.DayOffIndexCondition

The Day Off Index Condition determines whether the current work date is an employee's first unscheduled day, second unscheduled day, and so on, from the most recent scheduled day.

This condition is used to query the employee’s schedule to determine how many unscheduled days the employee has had from the last scheduled day to the current day.

These options are examples of when this condition can be implemented:

  • The current work date is the employee’s second day off.
  • The current work date is the employee’s first or second day off.

Parameters In

Name Type Description Example
Operator String One of the operators that is used to compare the day off index with the target index.

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

=
DayOffIndex Integer This parameter is the day on which the index is queried.

For example, the 4th day off, or 5th day off.

4

Example

Name Value
Operator <
DayOffIndex 3

For an employee working on Days 1 through 5, followed by Days 6 and 7 OFF, the condition is satisfied for Day 6 and 7 because they are the first and second day off in a row for the employee and they are less than three days off in a row. The condition would not be satisfied on Day 5 because the employee is scheduled to work.