Custom Rules for Time Sheets

You can create custom time sheet rules that are evaluated when users submit their time sheets. These rules supplement the standard configurable time sheet policies described in the Time Management Configuration Guide. Users do not see messages for rules violations when they save their time sheets without submitting them.

Caution: When using custom rules, the performance of Time Management when time sheets are submitted depends on such factors as the number of rules, their complexity, and whether the rules require evaluation of all time sheet lines.

A violation of a rule occurs when a user submits a time sheet that does not meet the requirements of the rule.

The rules you need to specify are all written in one XML file, and each rule includes SQL to specify the conditions of a time sheet that constitute a violation. Any data on the time sheet can be validated through SQL.

The custom rules can be restricted to apply to users who are associated with particular time sheet policies.

In the XML file, you specify the SQL that defines the rules. In a properties file, you create the message titles and messages that users see when a rule violation occurs or when a runtime error (a failure of the rule to run correctly) occurs.

The messages for all custom rule violations are displayed after any messages for the standard configurable time sheet policy violations, on the same dialog. The dialog has the same general "look and feel" as in the past, with some layout and spacing improvements.

Micro Focus provides a sample XML file and a sample properties file to use as models. This document describes examples in those files, but it does not describe how to write the SQL to define the custom rules.