Business Rules 10.7 | webMethods Business Rules Web Help | webMethods Rules Development Help | Global Functions Overview | Cutting, Copying and Pasting a Condition or Result within the Same Decision Entity
 
Cutting, Copying and Pasting a Condition or Result within the Same Decision Entity
You can cut or copy and paste conditions (decision tables, decision trees) or results (decision tables, decision trees, event rules) within the same decision entity. This only applies if the values of the conditions and results do not contain any errors.
Keep the following points in mind when pasting:
*At least one or more target conditions or results must be selected.
*The number of the selected target conditions or results must be equal to the number of the source conditions or results.
*The selected target conditions or results must be contiguous.
*Each value of the source conditions or results is checked against the data types of each value in the target conditions or results, and the enablement criteria for pasting condition or result values apply as specified in Cutting, Copying and Pasting a Condition Value or Result Value within the Same Decision Entity.
*The data types of the target conditions or results must be compatible with the data types of the source conditions or results.
*The dimension of the data types of the target condition or results must match the dimension of the data types of the source conditions or results. For more information about the dimension of data types, see About Data Types.
*To cut or copy and paste a condition or result within the same decision entity:
1. Open the decision entity as described in Opening a Decision Entity.
2. Select the source condition(s) or result(s).
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 condition(s) or result(s).
Note:
You can select one or more conditions or one or more results but not both conditions and results.
5. Do one of the following:
a. Select The paste icon, The paste before decision table condition icon (paste before, only if you selected a single target condition in a decision table), The paste before decision table result icon (paste before, only if you selected a single target result in a decision table), Paste before event rule result icon (paste before, only if you selected a single target result in an event rule), Paste after decision table condition icon (paste after, only if you selected a single target condition in a decision table), Paste after decision table result (paste after, only if you selected a single target result in a decision table), or Paste after event rule result (paste after, only if you selected a single target result in an event rule) from the toolbar.
b. Right-click and select Paste icon Paste, Paste before decision table condition icon Paste Before (only if you selected a single target condition in a decision table), Paste before decision table result icon Paste Before (only if you selected a single target result in a decision table), Paste before event rule result icon Paste Before (only if you selected a single target result in an event rule), Paste after decision table condition icon Paste After (only if you selected a single target condition in a decision table), Paste after decision table result icon Paste After (only if you selected a single target result in a decision table), or Paste after event rule result icon Paste After (only if you selected a single target result in an event rule) from the context menu.
c. Press CTRL+V (paste).
Note:
Pasting is disabled if any of the above listed criteria is not met. Paste Before and Paste After is disabled if you try to paste duplicate parameter elements as conditions or results.
If you selected the Paste option, the target condition(s) or result(s) are overwritten with the values from the source condition(s) or result(s). If you selected any of the Paste Before options, the source condition(s) or result(s) are inserted before the selected target condition or result. If you selected any of the Paste After options, the source condition(s) or result(s) are inserted after the selected target condition or result.