Databases Reference
In-Depth Information
Once we have completed our test pattern, we can click validate just to check that its
syntax is correct. Having completed this test, we can define similar approval rules for
vacations of 3, 5, and 10 days respectively.
When completed, save your dictionary and rerun the leave approval process;
you should now see that the vacations that match our leave approval rules are
automatically approved.
Using decision tables
Our updated ruleset consists of four rules that are very repetitive in nature. It would
make more sense to specify the rule just once and then parameterize it in a tabular
fashion. This is effectively what decision tables allow you to do.
Before creating your decision table, you will need to delete the rules we
have just defined, otherwise we will end up with two versions of the same
rules within our ruleset.
Defining a bucket set
When creating a decision table, you are often required to specify a list of values
or a range of values that apply to a particular rule. For example, in the case of
our vacation approval rule, we will need to specify the following ranges of leave
duration values that we are interested in:
1 day
2-3 days
4-5 days
6-10 days
We define these in a bucketset. To do this, select the Bucketsets tab in the rule editor,
then click on the green plus symbol and select List of Ranges from the drop-down
list, as shown in the following screenshot:
 
Search WWH ::




Custom Search