Databases Reference
In-Depth Information
For each rule, we need to test the result of this function against the appropriate value
in our
LeaveDuration
bucketset. Before we can do this, we must first associate the
condition with that bucketset. To do this, ensure that the condition cell is selected
and then click on the drop-down list above it and select
LeaveDuration
, as shown
in the following screenshot:
The next step is to check that the leave duration is one day, so click on the
appropriate cell (the intersection of
C2
and
R1
). The rule editor will present us with a
drop-down listing our options, which will be the list of buckets in the
LeaveDuration
bucketset. From here, select the option
1 day
.
Add three more rules to our decision table (to add a rule, click on the green plus icon
and select
Rule
). For
R2
, specify a leave duration of
2..3 days
, for
R3 4..5 days
, and
R4 6..10 days
.