Business Rules 10.11 | webMethods Business Rules Web Help | webMethods Rules Development Help | Global Functions Overview | Cutting, Copying and Pasting a Condition or Result from One Decision Entity to Another
 
Cutting, Copying and Pasting a Condition or Result from One Decision Entity to Another
You can cut or copy and paste conditions (decision tables, decision trees) or results (decision tables, decision trees, event rules) from one decision entity to another. This only applies if the values of the conditions and results do not contain any errors. A condition or result of a decision table or decision tree can also be cut or copied and pasted to a result of an event rule. A result of an event rule can also be cut or copied and pasted to a condition or result of a decision table or a decision tree.
In addition to the criteria specified in Cutting, Copying and Pasting a Condition or Result within the Same Decision Entity, keep the following points in mind when pasting:
*If a condition or result containing a parameter element has been copied to the system clipboard, the Paste option is disabled, unless the parameter the parameter element is part of exists within the target decision entity. The fully qualified parameter name must match exactly.
*If a condition or result containing an action has been copied to the system clipboard, the Paste option is disabled, unless an identical action exists within the rule project of the target decision entity, and all parameters used in the action mapping exist in the target decision entity. The fully qualified parameter names must match exactly.
*If a condition or result containing a function has been copied to the system clipboard, the Paste option is disabled, unless all input parameters of the function exist within the target decision entity. The fully qualified parameter names must match exactly.
*To cut or copy and paste a condition or result from one decision entity to another:
1. Open the decision entities as described in Opening a Decision Entity.
2. Select the source condition(s) or result(s).
Note:
You can select one or more conditions or one or more results but not both conditions and results.
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).
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.
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.