Error Rule

Some clients have timesheet states they wish to prohibit entirely (rather than just unauthorizing the day). The Error Rule allows them to accommodate such requirements by generating an error on the timesheet for the day being calculated. The configuration of this rule will usually be accompanied by one or more conditions that limit the scenarios under which the rule will fire. Without such situation-specific conditions, this rule will fire every day and thus generate an error every day. The various conditions configured with various condition sets will be responsible for determining "when" this rule should fire.

The Error Rule can also be used to generate timesheet errors that, when encountered, can prohibit the submission of a time off request. In effect, under some circumstances clients can create additional time off request validations by configuring this rule with a relevant condition. When an employee tries to submit a time off request that meets the conditions configured in this rule, the request submission is prohibited. The error message configured in the rule is displayed to the employee trying to submit the request.

Technical Details

com.workbrain.app.ta.quickrules.ErrorRule

Rule Parameters

Name Type Description Example
Error Message STRING The error message to be displayed on the timesheet when the rule is fired. If the error occurs because of a time off request, this error message is also displayed on the Time Off Planner when the user tries to submit the request. This timesheet is in error. Please fix A, B, and C.
Stop Execution BOOLEAN A true/false check box indicating whether the rule should stop the running of the rule engine or continue processing rules that follow this one.

If the execution point of the Error Rule is under "After Work Summary Overrides Applied", "After LTA Overrides Applied", or "Rounding Clocks", then the rule engine only stops the execution of rules after the Error Rule under these same execution points. Rules after the Error Rule under any other execution points will continue to be processed.

If the execution point of the Error Rule is under any other execution point except "After Work Summary Overrides Applied", "After LTA Overrides Applied", or "Rounding Clocks", then the rule engine stops the execution of all other rules after the Error Rule.

When set to true, the timesheet overrides associated with the calculation date will be put into a pending state until the error is resolved. This setting mimics the way a balance violation error affects the timesheet.

TRUE