Show Messages for Insufficient Rest Periods
The WFM_TDR_VALIDATE_REST_PERIOD_DURATION_AP formula, which uses array processing, is associated with the delivered Compare Rest Between Time Events Template rule template.
The fast formula compares the end and start times of consecutive reported time entries identified by the time category of the rest period. If the interim time is less than the defined rest period, the corresponding defined message appears. If no message is defined, the default message appears. The message severity is an output value associated with the displayed message.
Parameters
| Name | Data Type | Description |
|---|---|---|
| WORKED_TIME_CONDITION | Time category | Time category that identifies the time entries to use to decide whether the minimum rest period was met for the two shifts. |
| REST_PERIOD_IN_MINUTES | Fixed number | Minimum nonworked time, in minutes, required between consecutive end and start time entries. |
| OVERRIDE_MESSAGE_CODE | Message | Message that appears when the time between the end of one shift and start of the next shift is less than the defined rest period. |
Outputs
| Name | Message Severity |
|---|---|
| OUT_MSG | Specify whether the output message is informational, warning, or error |
Example
Scenario: The rule parameter REST_PERIOD_IN_MINUTES has the value 480 minutes.
| Day | Payroll Time Type | Mon | Output |
|---|---|---|---|
| Mon | Regular | 11a to 10p | None |
| Tue | Regular | 4a to 10a | The message appears because the rest period is less than 480 minutes (8 hours). |