Definition: Returns a number of consecutive days with a minimum hours per day threshold for each person. This rule evaluates a range of days and can be used to prevent fatigue before or after the target vacancy, but not limited to fatigue as this rule which counts days and work code hours can also be used to sort by consecutive days; for example, as a tie breaker sort by least number of consecutive days. Also - see Consecutive Threshold Day By Work Code Type which allows you to limit by Type such as Working, Nonworking rather than specifying each work code by gray number.
Return value: Values of type Number.
Source: Roster records both Checked and Unchecked.
From: This field is required. It defines the start of the time frame in which to look for the targeted records.
Through: This field is required. It defines the end of the time frame in which to look for the targeted records.
Sorting: Number sorting, ascending.
*An asterisk in the table below denotes a required field.
Arguments | Value (**Indicates Default) |
---|---|
*Threshold Hours | A number that is expressed in hours. If the sum of the hours on a day is greater than or equal to this number, then the day is counted. For example, suppose a person is fatigued if they work 4 consecutive days with a minimum of 16 hours each day. Then threshold hours is 16. |
Work Code Gray Numbers | The gray number of the work code or work codes
to consider for each person.
|
*Requires exceptions | This Argument exists to mitigate the (performance)
expense of this base rule, if the situation permits.
|
Respect Shift Break Hours | Enables with WORKINGHOURSSUM and NONWORKINGHOURSSUM
mode.
|
*Attributes | This option looks at the attributes on the
staffing record, this means a
checked record. The plus +
sign denotes with the following attributes. The minus - sign denotes
without the following attributes. Multiple values are valid. Options
are:
For example, +Request considers in the count unapproved work codes listed by Gray Number. |
*Proposed Too |
|
*From | Enables if the selected base rule requires
a Dynamic Date. Using a Dynamic Date, this field defines the first
date of a date range from which the Rule is to begin considering
the Base Rule parameters. For example, suppose a person is fatigued
if they work 4 consecutive days with a minimum of 16 hours each
day.
Example: Threshold hours is |
*Through | Enables if the selected base rule requires
a Dynamic Date. Using a Dynamic Date, this field defines the end
date of the date range from which the Rule is to consider
through when
considering the Base Rule parameters. For example, suppose a person
is fatigued if they work 4 consecutive days with a minimum of 16
hours each day.
Example: Threshold hours is |
Where | Used to indicate the number of consecutive
days where the rule returns TRUE (trigger). For example, suppose
a person is fatigued if they work 4 consecutive days with a minimum
of 16 hours each day.
Example: Threshold hours is Note:
This base rule seeks to return the highest number of consecutive days where x targeted hours are met for each person, WHERE is used to set your limit. |
Unique Identifier | The application Internal ID. |
Important: Review Base Rule Field Descriptions for additional field informations, such as Where, Pass Text, Build Moment.