Error Rule
The Error Rule is used to ensure strict compliance by preventing timesheets from processing when they contain prohibited states. Instead of flagging an entry as unauthorized, this rule generates an error during timesheet calculation. The configuration of this rule is accompanied by one or more conditions that limit the scenarios under which the rule fires. Without specific conditions, this rule fires every day and causes a daily error. The various condition sets control when the rule is activated, ensuring it only runs under the intended circumstances.
You can also use the Error Rule 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.
You can localize the error message to support multiple languages. Use the {ML}MESSAGE_KEY{/ML}Default message here{ARGS}{/ARGS}
format in the rule configuration. The MESSAGE_KEY is a unique identifier for the error, while the default message is a fallback if no localized version is available. To localize an error message, you can add a new record per language for each error message through Error Translation, and specify the same MESSAGE_KEY in the Name field. For example, {ML}TIMESHEET_CALC_ERROR{/ML}Invalid entry on timesheet{ARGS}{/ARGS}
, add a new record per language in Error Translation with name TIMESHEET_CALC_ERROR.
See the Infor Workforce Management User and Administration Library (Multi-tenant) and select
.If the selected language has a matching localized message, the system displays the translated version. If not, it falls back to the default message provided in the configuration.
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. 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 running 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 continues to process. If the running 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 running of all other rules after the Error Rule. When set to true, the timesheet overrides associated with the calculation date puts into a pending state until the error is resolved. This setting mimics the way a balance violation error affects the timesheet. |
TRUE |