Cut, Copy, and Paste Operations on Rule Sets
Copy a rule set to reuse the rule statements in the rule set. Move a rule set when you determine that the rule set belongs in another location.
You might copy a rule set to another rule specification to reuse the rule statements that the rule set contains. You might copy a rule set within a rule specification to create rule statements that are similar to the rule statements in the rule set.
You might move a rule set when you determine that the rule set is a dependency for a different business rule requirement.
You copy or move a rule set to a position below another rule set. The rule set that you copy or move becomes a child rule set of the destination rule set. When you copy or move a rule set to another rule specification, you also copy the inputs that the rule set uses. You cannot move a primary rule set. You cannot copy a rule set to the top-level rule specification shape.
Copying and Moving a Rule Set in a Rule Specification
To create multiple similar rule sets in a rule specification, copy the rule set. After you copy the rule set, update the rule statements to reflect the business requirements that the rule set represents.
Move a rule set when you determine that the rule set belongs in another location.
1. Open the rule specification.
2. Click Edit.
3. Select a rule set, and right-click it to open the menu.
- - To copy the rule set, select Copy.
- - To move the rule set, select Cut.
4. Select a parent rule set for the rule set that you copy or move. Right-click the parent rule set to open the menu.
You can create a copy of a rule set under the current parent rule set.
5. Click Paste.
6. The rule set that you copy or move appears below the rule set that you select.
The Analyst tool adds the string _COPY to the rule set name.
7. Save the rule specification.
Copying and Moving a Rule Set to a Different Rule Specification
If you create multiple rule specifications with similar logic, you can copy the rule sets from one rule specification to another to save time. After you copy the rule set, you might update it to reflect the business requirements of the current rule specification. Or, you might apply the rule set to different inputs.
Move a rule set when you determine that the rule set belongs in another location.
1. Open the rule specification.
2. Click Edit.
3. Select a rule set, and right-click it to open the menu.
- - To copy the rule set, select Copy.
- - To move the rule set, select Cut.
4. On the Analyst tool toolbar, click Open.
5. Select Rule Specifications from the list of library assets.
6. Select a destination rule specification for the rule set.
The rule specification opens in the Design workspace.
7. Click Edit.
8. Select a parent rule set for the rule set that you copy or move. Right-click the parent rule set to open the menu.
9. Click Paste.
10. The rule set that you copy or move appears below the rule set that you select.
The Analyst tool adds the string _COPY to the rule set name.
11. Save and close the rule specification.
If you moved a rule set from another rule specification, save and close both rule specifications.