Rule Builder > Managing Decision Tables > Condition Column Editing Operations > Setting Value Checking Rules

Cell values can be checked against a set of rules that can be established using the Decision Table Editor. Value checking rules can be set for condition columns as well as action columns.

For an interval (for example, the isBetween predicate), a specific checking rule can be applied to verify that the minimum is less than the maximum (ascending order), as shown in Figure 12.16, or that the minimum is greater than the maximum (descending order). This checking is available for all comparable types (currently Number and Date but not String).

images/chkinterval.gif

Figure 12.16    Value Checking Rule for Interval

Note
The interval checker is not available on action columns.

For each argument of the predicate associated with the condition column, a checker can be set to check the corresponding cell value against the checking rule.

Value Checking Rule Examples:

For the min argument of the isBetween predicate, the checking rule in Figure 12.17 checks that the value is > 0.

images/chkmin.gif

Figure 12.17    Value Checking Rule for Min Value

In the example in Figure 12.18, the rule checks that the argument is in the (Silver, Platinum) list, meaning that value is equal to Silver or Platinum.

images/chkin.gif

Figure 12.18    Value Checking Rule for Domain

Value Checking Violation Examples

When a cell value violates a checking rule that may have been set, and if the checking of values is enabled at the table level, the cell value is underlined and a tooltip can be displayed.

Two examples are shown in Figure 12.19.

Figure 12.19    Value Checking Rule Violations in Condition Columns

See Also

Defining the Default Column Labels in Decision Tables | Decision Table / Tree Predicates | Editing the Condition Column Test Expression


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT