Rule Types
| Constraint | Description |
|---|---|
COUNTER | Count occurrences within a period (days worked, hours, shifts) |
SEQUENCE | Limit consecutive occurrences (max days in a row) |
Counter Rules
Count and limit occurrences within a planning period.Working Days
Limit total working days:Days Idle
Ensure minimum days off:Weekends Idle
Guarantee free weekends:Requires weekend definition in options to specify what constitutes a weekend.
Shift Type Limits
Limit specific shift types using tags:Counter Types
| Type | Description |
|---|---|
DAYS_WORKED | Total days with at least one shift |
DAYS_IDLE | Total days without any shift |
WEEKENDS_WORKED | Complete weekends with work |
WEEKENDS_IDLE | Complete weekends without work |
SHIFT_TYPES_WORKED | Shifts matching specific tags |
SHIFT_TYPES_HOURS_WORKED | Hours worked on shifts matching specific tags |
HOURS_WORKED | Total hours across all shifts |
Period Scoping
By default, rules apply to the entire planning period. Scope rules to specific periods:Fixed Period
Rolling Window
Apply the rule as a sliding window:Sequence Rules
Limit consecutive occurrences without specifying a period window.Consecutive Working Days
Employees work between 2 and 4 consecutive days before a day off.
Conditional Rules
Trigger a rule when another rule’s threshold is exceeded. Example: If 20+ hours of night shifts within 72 hours, then require 2 days idle:Rule Properties
Rule type:
COUNTER or SEQUENCEWhat to count or sequence (see tables above)
Minimum count or sequence length
Maximum count or sequence length
Filter rule to specific shift tags
Time scope with
from/to dates or rolling durationConditional rule triggered when this rule is exceeded
Common Rule Patterns
40-hour work week
40-hour work week
Maximum 5 consecutive days
Maximum 5 consecutive days
At least 2 weekends off per month
At least 2 weekends off per month
Max 2 night shifts per week
Max 2 night shifts per week