Time clock systems by TimeIPS
Call Now! 316-264-1600
Information
Sales
Support
Knowledge Base Search:  
Main Menu
· Home

· Table of Contents
· Article Index

· Downloads
· New Features
· FAQ
· News
· Web Links

  
TimeIPS Knowledge Base

Table of Contents: Article IndexPrintable Version

Applies to versions: 1.11, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5



Schedule Groups Break Rules Expression Variables



This article explains the purpose of expressions in Schedule Group Break Rules and provides the available configuration options.

Schedule Group Break Rules

Schedule Groups have a feature called Break Rules which allows for many automated actions when an employee comes back from a break.

Purpose of Expressions

Expressions allow you to customize the application of Break Rules. For example you can have one schedule group for all employees and use custom logic based on Organizational Unit to determine if the rule should fire.

Format of Expressions

Expressions must start with an equals sign '='. They provide a single line of code that is evaluated and reduced down to either TRUE or FALSE. If the expression evaluates to TRUE then it is valid and the break rule can be triggered. If it is FALSE then the break rule will not be triggered.

Supported Functions

Break Rule expressions utilize the same expression parser as Custom Reports. As such the same functions are available. The list of functions is available at this article.

Available Variables

The following information is available. Variable names are case sensitive. 

Variable OutlineFull Variable NameDescription
breakStart
[breakStart] This is the Unix Timestamp of the last clock out which is the beginning of the break. Convert this with the utcdate function.
breakEnd
[breakEnd] This is the Unix Timestamp of the new clock in which is the end of the break. Convert this with the utcdate function.
user
[user] This variable itself has no value to expressions. It serves as the starting point for multi-dimensional variables that contain more information about this employee.
        usersID
[user][usersID] This is the unique database ID assigned to this employee by TimeIPS. This will always be unique among all employees in the system.
        nameFirst
[user][nameFirst] The employee's first name.
        nameLast
[user][nameLast] The employee's last name.
        nameMid
[user][nameMid] The employee's middle name if provided. 
        namePref
[user][namePref] The employee's preferred name if provided.
        HID
[user][HID] The employee's badge number.
        type
[user][type] Starting point for information about the employee's payroll type. 
                typeID
[user][type][typeID] A unique database ID assigned to this payroll type.
                name
[user][type][name] The name of the employee's payroll type.
                timing_frame
[user][type][timing_frame] An indicator about the payroll frequency of this payroll type. Possible values are 'week', 'biweek', 'month', 'bimonth', and '4-4-5'.
                code
[user][type][code] An arbitrary payroll code associated with this payroll type.
        orgUnit
[user][orgUnit] Starting point for the employee's organizational unit.
                organizationalUnitID
[user][orgUnit][organizationalUnitID] A unique database ID for this unit.
                name
[user][orgUnit][name] The name of this unit.
                code
[user][orgUnit][code] An arbitrary code associated with this unit.
        scheduleGroup
[user][scheduleGroup] Starting point for this employee's schedule group.
                schedGroupID
[user][scheduleGroup][schedGroupID] Unique database ID.
                name
[user][scheduleGroup][name] The name of this schedule group.
        defaultDepartment
[user][defaultDepartment] Starting point for information about this employee's default department.
                departmentID
[user][defaultDepartment][departmentID] A unique database ID.
                name
[user][defaultDepartment][name] The name of this employee's default department.
                shortName
[user][defaultDepartment][shortName] The abbreviated name of this department.
                ctrlNum
[user][defaultDepartment][ctrlNum] An arbirtrary control number for this department.
                code
[user][defaultDepartment][code] The code for this department. This is the code employees might type at the clock.
                subCode
[user][defaultDepartment][subCode] An optional subcode for this department.
                glNum
[user][defaultDepartment][glNum] An optional G.L. Number for this department.
                altNum
[user][defaultDepartment][altNum] An optional alternate number used by this department.
                trackTime
[user][defaultDepartment][trackTime] Either a 1 or 0 if this department is tracked against worked time.
                trackBenefits
[user][defaultDepartment][trackBenefits] Either a 1 or 0 if this department is tracked against benefits.
                trackHolidays
[user][defaultDepartment][trackHolidays] Either a 1 or 0 if this department is tracked against holidays.
                trackPiecework
[user][defaultDepartment][trackPiecework] Either a 1 or 0 if this department is tracked against piecework.
        defaultWorkOrder
[user][defaultWorkOrder] Starting point for information about the employee's default work order.
                workOrderID
[user][defaultworkOrder][workOrderID] A unique database ID about this work order.
                name
[user][defaultworkOrder][name] The name of this work order.
                lcdName
[user][defaultworkOrder][lcdName] The abbreviated name of this work order.
                code
[user][defaultworkOrder][code] The code to identify the work order.
                poNum
[user][defaultworkOrder][poNum] A P.O. number associated with the work order.
                dateStart
[user][defaultworkOrder][dateStart] The date work on this work order is intended to begin
                dateDue
[user][defaultworkOrder][dateDue] The due date of this work order.
                note
[user][defaultworkOrder][note] A note associated with this work order.
                customer
[user][defaultworkOrder][customer] A starting point for information about the customer on this work order.
                        custID
[user][defaultworkOrder][customer][custID]  This customer's unique database ID.
                        name
[user][defaultworkOrder][customer][name] The name of this customer.
                        addr1
[user][defaultworkOrder][customer][addr1] The first line in this customer's address.
                        addr2
[user][defaultworkOrder][customer][addr2] The second line in this customer's address.
                        city
[user][defaultworkOrder][customer][city] The city for this customer's address.
                        state
[user][defaultworkOrder][customer][state] The state for this customer's address.
                        zip
[user][defaultworkOrder][customer][zip] The zip code for this customer's address.
                        phone
[user][defaultworkOrder][customer][phone] The phone number on this customer.
                        fax
[user][defaultworkOrder][customer][fax] The fax number on this customer.
        defaultJob
[user][defaultJob] Starting point for information about this customer's default job.
                jobID
[user][defaultJob][jobID] The unique database ID associated with this job.
                lcdName
[user][defaultJob][lcdName] The shortened name of this job.
                code
[user][defaultJob][code] The job code used to clock in to this job.
                name
[user][defaultJob][name] The name of the job.
                ctrlNum
[user][defaultJob][ctrlNum] A control number associated with the job.
                billingRate
[user][defaultJob][billingRate] A billing rate associated with the job.
                glNum
[user][defaultJob][glNum] A G.L. number for the job.
                description
[user][defaultJob][description] Any description provided about the job.
                subCode
[user][defaultJob][subCode] An arbitrary sub code identifier for the job.
                altNum
[user][defaultJob][altNum] The job's alternate number.
                customer
[user][defaultworkOrder][customer] A starting point for information about the customer on this work order.
                        custID
[user][defaultworkOrder][customer][custID] This customer's unique database ID.
                        name
[user][defaultworkOrder][customer][name] The name of this customer.
                        addr1
[user][defaultworkOrder][customer][addr1] The first line in this customer's address.
                        addr2
[user][defaultworkOrder][customer][addr2] The second line in this customer's address.
                        city
[user][defaultworkOrder][customer][city] The city for this customer's address.
                        state
[user][defaultworkOrder][customer][state] The state for this customer's address.
                        zip
[user][defaultworkOrder][customer][zip] The zip code for this customer's address.
                        phone
[user][defaultworkOrder][customer][phone] The phone number on this customer.
                        fax
[user][defaultworkOrder][customer][fax] The fax number on this customer.
                category
[user][defaultJob][category] Starting point for information about this job's category.
                        catID
[user][defaultJob][category][catID] A unique database ID for this category.
                        name
[user][defaultJob][category][name] The name of the category.
                        descr
[user][defaultJob][category][descr] A description about this job category.
                        code
[user][defaultJob][category][code] A code associated with this job category.
        manager
[user][manager] *? This is the employee's manager. There is another complete set of variables for the manager starting where this list startes with 'user'. For example to get this employee's manager's name you could use [user][manager][nameFirst] If the manager has a manager above them then they will also have a manager entry at [user][manager][manager] and so on.


See Also:
Supported Functions For Advanced Expressions (2.1, 2.2, 2.3)

©2004-2017 TimeIPS, Inc. All Rights Reserved - TimeIPS and the TimeIPS logo are registered trademarks of TimeIPS, Inc.
"Intelligent Personnel System" "Run your Business. We'll watch the clock." are trademarks of TimeIPS, Inc.
TimeIPS is protected by one or more patents. Patent No. US 7,114.684 B2.