|
|
Applies to versions: 1.11, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 3.0, 3.1, 3.2, 3.3, 4.0
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 Outline | Full Variable Name | Description |
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. See this for more details. |
See Also: Supported Functions For Advanced Expressions (2.1, 2.2, 2.3)
|