Rule examples

Example: Creating scheduled swipes regardless of actual clocks

In this rule configuration, scheduled swipes get created whether the day is in the past, present, or future, and regardless of whether any real clocks exist:

Parameter Value
Actual Swipe Required? Never
Create Timesheet Clocks? Never

For example, an employee scheduled from 08:00 to 16:00 with a meal break from 12:00-13:00 records real clocks at 08:05 (ON) and 12:15 (Meal Start).

In this case, four scheduled swipe records are initially created and then updated based on the real clocks:

  1. ON clock at 08:05 (real clock)
  2. Meal Start clock as 12:15 (real clock)
  3. Meal End clock at 13:15
    Note: The time of the scheduled swipe is updated to be the real meal start time plus the scheduled break duration.
  4. OFF clock at 16:00

Example: Requiring a real clock to generate scheduled swipes on previous days

In this rule configuration, a real clock is required to generate scheduled swipes on previous days:

Parameter Value
Actual Swipe Required? On Previous Days Only
Create Timesheet Clocks? Never

For example, an employee scheduled from 08:00 to 16:00 fails to record a real clock on yesterday's date.

In this case, when the rule re-executes today, no scheduled swipes exist on yesterday's date. When the employee records their clocks today, they are prohibited from recording their missed clocks from yesterday.

Another employee scheduled from 08:00 to 16:00 forgets to record an OFF clock on yesterday's date.

In this case, when the rule re-executes today, a scheduled swipe exists at 16:00 (OFF) on yesterday's date. When the employee records their ON clock today, they are prompted to record their missed OFF clock from yesterday.

Another employee scheduled from 08:00 to 16:00 forgets to record an ON clock on today's date.

In this case, a scheduled swipe exists at 08:00 (ON) on today's date. When the employee records their Meal Start clock, they are prompted to record their missed ON clock.

Example: Creating timesheet clocks on previous days only

In this rule configuration, timesheet clocks are only created from scheduled swipes when the timesheet date is less than the current date:

Parameter Value
Actual Swipe Required? Never
Create Timesheet Clocks? On Previous Days Only

For example, an employee scheduled from 08:00 to 16:00 with a meal break from 12:00-13:00 has real clocks at 08:05 (ON) and 13:30 (Meal End) on yesterday's date.

In this case, when the rule re-executes today, the missing clocks are generated on the timesheet. A Meal Start clock is created for 12:30 and an OFF clock is created for 16:00 on yesterday's date. The employee has four clocks on their timesheet for yesterday:

  1. ON clock at 08:05 (real clock)
  2. Meal Start clock as 12:30 (system-generated)
  3. Meal End clock at 13:30 (real clock)
  4. OFF clock at 16:00 (system-generated)
Note: The system-generated clocks are updated with the actual time when the employee confirms/corrects their missed clocks.

Another employee scheduled from 08:00 to 16:00 forgets to record an OFF clock on yesterday's date.

In this case, when the rule re-executes today, the missing clock is generated on the timesheet. An OFF clock is created for 16:00 on yesterday's date. When the employee records their ON clock today, they are prompted to confirm/correct their missed OFF clock from yesterday.

Another employee scheduled from 08:00 to 16:00 forgets to record an ON clock on today's date.

In this case, the missing ON clock is not generated on the timesheet. When the employee records their Meal Start clock, they are prompted to record their missed ON clock.

Example: Removing scheduled swipes from ineligible employees in a calculation group

In this rule configuration, scheduled swipes are only created for part-time employees in a calculation group. When a part-time employee becomes a full-time employee, their old scheduled swipe records are removed from the application.

For this scenario, two condition sets are configured within the rule:

Part-time

The first condition set applies to part-time employees who require scheduled swipes to be created and maintained. For these employees, the condition evaluates to true and the rule creates scheduled swipe records.

Is Employee Property Generic Condition:

Parameter Value
Expression String "empFullTime=N"

Rule parameters:

Parameter Value
Actual Swipe Required? On Previous Days Only
Create Timesheet Clocks? On Previous Days Only
Remove All Scheduled Swipes? Cleared

Ineligible for Swipes

The second condition set applies to all other employees who require any existing swipes to be removed. For these employees, the rule removes existing swipe records.

Rule parameters:

Parameter Value
Actual Swipe Required? (Disabled)
Create Timesheet Clocks? (Disabled)
Remove All Scheduled Swipes? Selected