Cut, Copy, and Paste Operations on Rule Statements
Copy a rule statement to reuse the rule statement logic in the same rule set or in another rule set. Move a rule statement that belongs in another rule set. You can copy or move a rule statement to a rule set in the same rule specification or in another rule specification.
You might copy a rule statement to another rule specification to reuse the rule statement. You might copy a rule statement within a rule specification to create a similar rule statement.
You might move a rule statement when you determine that the rule statement applies to a different business rule requirement.
When you copy or move a rule statement to another rule specification, you also copy the inputs that the rule statement uses.
Copying and Moving a Rule Statement in a Rule Specification
To create multiple similar rule statements in a rule specification, copy the rule statement. You can copy and paste a rule statement within the same rule set or to another rule set. After you copy the rule statement, update it to reflect the business rule logic.
Move a rule statement when you determine that the rule statement belongs in another rule set.
1. Open the rule specification.
2. Click Edit.
3. Select the rule set that contains the rule statement to copy or move.
4. Select Rule Logic.
5. Select the rule statement. If the rule statement contains more than one condition, select the first line of the rule statement.
6. Open the context menu.
- - To copy the rule statement, select Copy Rule Statement.
- - To move the rule set, select Cut Rule Statement.
Note: Find the context menu option beside the Action options.
7. Select a parent rule set for the rule statement.
You can create a copy of a rule statement in the current rule set or in another rule set.
8. Select a rule statement in the rule set.
9. Open the rule statement context menu, and select Paste Rule Statement.
The rule statement that you copied or moved appears in the rule set.
10. Verify the position of the rule statement in the rule set.
If necessary, move the rule statement up or down in the list of list of rule statements.
11. Save the rule specification.
Copying and Moving a Rule Statement to a Different Rule Specification
When you create multiple rule specifications with similar logic, you can copy the rule statements from one rule specification to another to save time. After you copy the rule statement, you might update it to reflect the business requirements of the current rule specification. Or, you might apply the rule statement to different inputs.
Move a rule specification when you determine that the rule set belongs in another location.
1. Open the rule specification.
2. Click Edit.
3. Select the rule set that contains the rule statement to copy or move.
4. Select Rule Logic.
5. Select the rule statement. If the rule statement contains more than one condition, select the first line of the rule statement.
6. Open the context menu.
- - To copy the rule statement, select Copy Rule Statement.
- - To move the rule set, select Cut Rule Statement.
Note: Find the context menu option beside the Action options.
7. On the Analyst tool toolbar, click Open.
8. Select Rule Specifications from the list of library assets.
9. Select the name of the destination rule specification for the rule set.
The rule specification opens in the Design workspace.
10. In the open rule specification, click Edit.
11. Select a rule set, and select Rule Logic.
12. Select a rule statement in the rule set.
13. Open the rule statement context menu, and select Paste Rule Statement.
The rule statement that you copied or moved appears in the rule set.
14. Verify the position of the rule statement in the rule set.
If necessary, move the rule statement up or down in the list of list of rule statements.
15. Save and close the rule specification.
If you moved a rule statement from another rule specification, save and close both rule specifications.