Is Employed Period Condition

com.workbrain.app.ta.conditions.IsEmployedPeriodCondition

The Is Employed Period Condition determines whether an employee is considered to have been employed for a certain duration of time, as specified per the condition's parameter settings.

Parameters In

Parameter Description Example
Reference Determines the date that will be used to compare the current calculation date against. These are the supported options:
  • HIRE_DATE: When this option is used, the employee's hire date (EMP_HIRE_DATE) is used for the comparison.
  • SENIORITY_DATE: When this option is used, the employee's seniority date (EMP_SENIORITY_DATE) is used for the comparison.
  • DATE=MM/DD/YYYY: When this option is used, the specified date (in the format MM/DD/YYYY) is used for the comparison.
    Note: You must prefix the actual date with DATE=.
HIRE_DATE

SENIORITY_DATE

DATE=10/01/2013

Operator The operator to use when comparing the defined employment period against the calculated value.

Supported operators are =, <, >, <=, and >=.

>=

In this case, the condition returns true when the employee's employment period is equal to or greater than the defined period to check for.

UnitPeriod The time range to compare against the reference value. These are the supported options:
  • DAY
  • WEEK
  • PAY PERIOD
  • MONTH
  • QUARTER
  • YEAR
  • X of Y Days: Determines if an employee has been employed for X of the last Y days. An employee is considered employed for each work date where both of these conditions are true:
    • The work date is less than the employee's termination date.
    • The work date is equal to or greater than the employee's reference date (hire date, seniority date, etc.).

    The current work date is included in the comparison.

    Note: Enter the X and Y values as comma-separated values in the UnitValue parameter. For example: 90,365.
WEEK

X of Y Days

UnitValue The value to quantify the UnitPeriod. 3

90,365

Example: Is Employed X days

In this example, the condition returns true for all timesheets that are dated 90 or more days in the future from the employee's hire date.

Parameter Configuration
Reference HIRE_DATE
Operator >=
Unit Period DAY
Unit Value 90

Example: Is Employed X of last Y

In this example, the condition returns true for all employees that have been employed at least 90 days in the last 12 months.
Parameter Configuration
Reference HIRE_DATE
Operator >=
Unit Period X of Y Days
Unit Value 90,365