Holiday Condition

com.workbrain.app.ta.quickrules.HolidayCondition

The Holiday Condition checks to see if the current day is a holiday and then checks several qualifying values, specified in the parameters, that are related to minimum working requirements around the holiday and employment duration.

Use this condition to trigger the rule on a specific holiday day for the employee, where there are requirements around the holiday for minimum hours worked and seniority.

Parameters In

Name Type Description Example
DayTypeAppliedTo String Tells the application whether to apply the logic on SCHEDULED, UNSCHEDULED, or ALL days. Defaults to ALL.

The UNSCHEDULED value is not normally used, but is provided here for correctness (that is, if you can apply the logic only for SCHEDULED, then you must apply the logic for UNSCHEDULED).

ALL
TimeCodeList String Comma-delimited list of valid time code names that will count towards time worked around the holiday. WRK,TRN
MustWorkDaysBefore Integer Determines how many scheduled days before the holiday the employee must work to receive the public holiday pay. On those days, the application must find MustWorkMinutesBefore of Work_Detail records, where the time code is in TimeCodeList. Defaults to 1. 1
MustWorkDaysAfter Integer Determines how many scheduled days after the holiday the employee has to work to receive the public holiday pay. On those days, the application must find MustWorkMinutesAfter of Work_Detail records, where the time code is in TimeCodeList. Defaults to 1.

Since the application calculates time wise forward, the holiday will usually not be paid until the records are calculated twice for the day after to change from UAT to WRK during the calculation.

1
MustWorkMinutesBefore Integer Defines the minimum number of minutes the employee must work on the time codes that are defined in TimeCodeList to qualify for the bonus on the scheduled days leading up to the holiday. Defaults to null.

A "special" value of -1 tells the application that the employee must have worked their entire scheduled shift. This parameter is only checked when MustWorkDaysBefore is set to a non-null value.

480
MustWorkMinutesAfter Integer Defines the minimum number of minutes the employee must work on the time codes that are defined in TimeCodeList to qualify for the bonus on the scheduled days immediately after the holiday, as defined in MustWorkDaysAfter. Defaults to null.

A "special" value of -1 tells the application that the employee must have worked their entire scheduled shift. This parameter is only checked when MustWorkDaysAfter is set to a non-null value.

480
MustWorkMinutesDayOf Integer Determines how many minutes the employee must work the day of the holiday. If the value is set to -1, the application will use the employee's scheduled time instead. 240
MinimumEmployedDays Integer When set, this parameter controls the minimum difference in days between the date of the holiday and the date that is stored in the hired date field in the employee record. Defaults to null.

On an employee's first day of work, this value is 0. On the employee's 90th day of employment, the value is 90 -1 = 89.

90