Exists Clock Token Condition
com.workbrain.app.ta.conditions.ExistsClockTokenCondition
The Exists Clock Token Condition limits the execution of certain rules to situations in which specific clock tokens have been applied to a timesheet. For example, you can trigger the Meal Confirmation Pay Rule any time an employee has indicated through a survey that meals were not taken for business reasons.
Parameters In
| Name | Type | Description | Example | 
|---|---|---|---|
| TokenName | String | Used to determine which token to check in each clock data that day. For surveys, the token is configured in the Survey Prompt Setup maintenance form. | WELLNESS_CHECK_CONFIRM | 
| Value | String | The specific value to check for in association with the token name as specified in the TokenName parameter. The list can have multiple values. | Y | 
| Occurrences | Integer | The number of clocks with this token. Defaults to 1. | 1 | 
| Operator | String | The operator is used in conjunction with the Occurrences parameter. Defaults to >=. | = | 
| Original or Actual | String | Determines whether the work summary original clocks or the actual clocks are checked. | Original | 
Example: Trigger the Meal Confirmation Pay Rule based on responses to a survey
In this example, the Meal Confirmation Pay Rule is triggered any time an employee has indicated through a survey that meals were not taken for business reasons. The token NO_MEAL was configured for a prompt in the survey.
Exists Clock Token Condition:
| Parameter | Value | 
|---|---|
| TokenName | NO_MEAL | 
| Value | Business | 
| Occurrences | 1 | 
| Operator | = | 
| Original or Actual | Original | 
The condition evaluates to true if the original clock contains NO_MEAL=Business. Otherwise, the condition evaluates to false.
Meal Confirmation Pay Rule:
If the preceding condition evaluates to true, this rule removes the employee's meal break.
| Parameter | Value | 
|---|---|
| Change From | MEAL | 
| Change to Time Code | WRK | 
| Change to Hour Type | REG | 
| Reset Type | Previous Off Clock |