Business Rules 10.11 | webMethods Business Rules Web Help | webMethods Rules Development Help | Working with Decision Tables | Modifying a Decision Table | Cutting, Copying and Pasting a Rule from One Decision Table to Another
 
Cutting, Copying and Pasting a Rule from One Decision Table to Another
You can cut or copy and paste one or more rules from one decision table to another. This only applies if the rules do not contain any errors.
In addition to the criteria specified in Cutting, Copying and Pasting a Condition Value or Result Value within the Same Decision Entity and Cutting, Copying and Pasting a Condition Value or Result Value from One Decision Entity to Another, keep the following points in mind when pasting:
*At least one or more target rules must be selected.
*The number of the selected target rules must be less than or equal to the number of the source rules.
*The selected target rules must be contiguous.
*The number of columns in the target decision table must match the number of columns in the source decision table.
*The data types of the condition or results in the target decision table must be compatible with the data types of the condition or results in the source decision table.
*The dimension of the data types of the condition or results in the target decision table must match the dimension of the data types of the condition or results in the source decision table. For more information about the dimension of data types, see About Data Types.
*To cut or copy and paste rules from one decision table to another:
1. Open the decision tables as described in Opening a Decision Entity.
2. Select the source rule(s) in the source decision table.
3. Do one of the following:
a. Select The cut icon or The copy icon from the toolbar.
b. Right-click and select Cut icon Cut or Copy icon Copy from the context menu.
c. Press CTRL+X (cut) or CTRL+C (copy).
4. Select the target rule(s) in the target decision table.
5. Do one of the following:
a. Select The paste icon, The paste before rule icon (paste before, only if you selected a single target rule) or The paste after rule icon (paste after, only if you selected a single target rule) from the toolbar.
b. Right-click and select Paste icon Paste, Paste before rule icon Paste Before (only if you selected a single target rule) or Paste after rule icon Paste After (only if you selected a single target rule) from the context menu.
c. Press CTRL+V (paste).
Note:
Pasting is disabled if any of the above listed criteria is not met.
If you selected the Paste icon Paste option, the target rule(s) are overwritten with the values from the source rule(s). If you selected the Paste before rule icon Paste Before option, the source rule(s) are inserted before the selected target rule. If you selected the Paste after rule icon Paste After option, the source rule(s) are inserted after the selected target rule.