Rule Builder > Managing Decision Tables > Partition Item Editing Operations > Merging Partition Items

To merge several partition items of the same partition:

The merge operation assigns all merged partition item values to the first item selected, which becomes a collection.

The precise action of the merge operation depends on whether the column is an interval or not. All tree branches corresponding to the merged partition items are merged in a unique branch. This operation may lead to an overlapping partition, having the same choices more than once. You can merge these identical choices to remove the overlap.

If the last partition item of the last selection has any child partitions, its action set is lost during the merge operation.

This section has the following subsections:

Merging Simple Values

When you merge simple values, the resulting partition item contains a list of values. This kind of merge is available for Domain, Number, String, and Date types.

In the following example, merging the selection (Figure 12.34) leads to the table shown in Figure 12.35.

images/merge1.png

Figure 12.34    Selecting Merge for Simple Values

images/merge2.gif

Figure 12.35    Sample Merge of Simple Values

Note that the action set corresponding to Platinum has been lost during the operation.

Merging an Interval

When you merge an interval, the first interval is modified and the maximum value of this interval is replaced by the maximum value of the last selected interval.

In the following example, the merging of the selected block (Figure 12.36) leads to the table shown in Figure 12.37.

images/merge3.png

Figure 12.36    Selecting Merge for an Interval

images/merge4.gif

Figure 12.37    Merge of an Interval

See Also

Decision Table / Tree Supported Data Types | Decision Table Operations


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