Understanding checkout and your personal RuleSet
When a rule belongs to a RuleSet that has the check-out facility turned on, to change that rule, the system enforces use of check-out and check-in operations. Before you can change that rule, you must perform either standard check-out or private check-out operation.
Basically, when you check out a rule, you are making a private copy of the rule, which you can then modify and test out until you are ready to replace the base (copied) rule with your modified copy. Usually, the standard check-out operation is used to make this copy. In some situations — and when you have the pxAllowPrivateCheckout privilege — you can use the private check-out operation to make the copy of the rule. The main situations for using private check out are when you cannot do a standard check out — for example, when you want to rapidly debug a rule that is in a locked RuleSet version, while avoiding affecting the rest of the application or its users by making additional RuleSet versions or introducing branches.
Using the standard check-out operation to change a rule
To change a rule that belongs to a RuleSet that has the check-out facility turned on, using the standard check-out operation:
- Open the rule. Confirm that the rule is not already checked out — that no lock icon () appears on the upper right of the form.
- Click the Check Out toolbar button () to check this rule instance out. Your private checked-out copy of the rule is initially the same as the original instance.
- Update and save the checked-out copy as often as you want. When you update the rule, you are updating your private copy.
- Save and test your changes while the rule remains in your private RuleSet. Other users are unaffected by your changes. You can log off and return later with the rule instance still checked out to you.
- When your changes are complete, click the Check In button () to check the rule back in. Enter a brief memo describing your changes, and click Check In to complete the check-in operation. The system removes the changed copy of the rule from your personal RuleSet and replaces the original rule.
- If you decide not to replace the base (copied) rule with your checked-out copy, or if you want to start over, click the Delete Checked Out toolbar button (). The system deletes the checked-out copy of the rule from your personal RuleSet.
- If the RuleSet uses an approval flow, when you complete the check-in step, your copy of the rule is routed to an approver for approval before the system replaces the base rule with your copy.
Using the private check-out operation to change a rule
Any rule that would normally be available for you to check out, you can perform a private check out if you have the pxAllowPrivateCheckout privilege. This privilege is typically granted via an access role used in your access group. The standard access role PegaRULES:SysAdm4 provides this privilege.
If the rule is available for you to perform a standard check out and you want to make a private copy of the rule, the system makes the standard check out available to you to make the copy. The system determines whether the rule is available for you to perform a standard check out. If the rule is unavailable for you to perform a standard check out (for example, if it is checked out to another user or the rule belongs to a locked RuleSet version), and you have the pxAllowPrivateCheckout privilege, the system makes the private check-out operation available to you to make the copy.
- Open the rule. For a private check out, the rule can be checked out to another user or in a locked RuleSet version.
- Click the Check Out toolbar button () to make a private copy of this rule instance. Your private copy of the rule is initially the same as the original instance.
- Update and save your private copy as often as you want. When you update the rule, you are updating your private copy only. As you run processes and test in the application, you see any changes you have saved to your private copy. Other application users are unaffected by your changes. You can log off and return later with your private copy still available to you in your private RuleSet.
- When are finished using your private copy, you can delete the copy, or — if you want your changes to be made available to the application and other users — click the Private Check In button (). You can either replace the base rule (if the base RuleSet has an unlocked RuleSet version into which to save your changed private copy) or save your changed private copy to a branch RuleSet (if one is available in the application for the corresponding base RuleSet). After you click the button, the CheckIn Rule window opens. In the window:
- Select a RuleSet version from the Version field. The available choices are:
- Any unlocked RuleSet versions for the base rule's RuleSet.
- Any unlocked branch RuleSets for the base rule's RuleSet.
If there are no unlocked RuleSet versions or unlocked branch RuleSets, you cannot check in your copy of the rule. - Enter a brief memo describing your changes in the Description field.
- Click Check In.
Note: When checking you copy into the base RuleSet, if the base rule has been updated in the time between when you did your private check out of the rule and when you are checking in your copy, a message displays to alert you that checking in your private copy will overwrite the base rule, and replace any changes made to it after you did your private check out. The message also displays the name of the user who last updated the rule, so that you can contact that user for information about the recent updates. In this situation, it is critical that you manually merge the base rule's updates into your private copy before completing the check in of your private copy. Clicking OK in the message is your confirmation that you have completed the merge process and that overwriting the base rule with your private copy will not cause any issues for the application and its users.
If there are no obstacles to checking in your copy of the rule (such as another user has the base rule checked out), the system removes the copy of the rule from your personal RuleSet and replaces the original rule with your copy (if checking into the base RuleSet version) or saves your copy (if saving to a new unlocked RuleSet version or branch RuleSet).
- If you decide not to replace the base (copied) rule with your private copy or save it to a new version or into a branch RuleSet, or if you want to start over, click the Delete Checked Out toolbar button (). The system deletes the private copy of the rule from your personal RuleSet.
- If the RuleSet uses an approval flow, when you complete the check-in step, your copy of the rule is routed to an approver for approval before the system replaces the base rule with your copy.
Project Management Check-In Fields
If Project Management is enabled for your application, additional fields display in the Project Management section in the Check In window that allow you to link your development changes to project items assigned to you. Depending on the type of project item (user story, bug, task or issue) some or all of the information entered here is transferred via the Project Management communication link to the item in the Project Management Framework.
If you want to record and track rule changes related to a project item on your Project Worklist:
- Select the Project Item you want to link to this rule. The list defaults from your Project Worklist.
- The Description field defaults to the description of the project item you select.
- Check Work Complete if the work on this project item is complete. Appears if you select a bug, task, or issue item.
- If you select a bug or a task item the following two fields display.
In the Additional Worked field, enter the amount of time you have spent working on this item since the last time you recorded effort. The time you add is added to the Actual Hours of the item.
In the Remaining Hours field, enter the amount of time you think remains until the work on the item is completed. This time updates the Remaining Hours of the item. This field does not display when the Work Complete box is checked.
- Required. In the Note field, add a development note. Adds the note to the Notes tab of the item.
- Click Check In.
You can view a list of the rule changes in a separate window when you click the View Changes link from the worklist. You can choose display a list of your changes from the My Changes tab or all rule changes in the application from the All Changes tab.
For more information about the framework and tracking development progress, see the PDN publicationProject Management Framework User Guide.
Tips and Notes
- Use the Show Checked Out button () on the Quick Launch area of the Designer Studio to quickly see a list of rules checked out to you. Rules that you have performed a standard check out and private check out are listed. To list all the rules checked out using standard check out by another user, or by anyone, select > Application > Development > Checked Out Rules and complete the prompts. Private check outs are not listed in the Checked Out Rules tab on the Development landing page.
- Check-out (standard and private) does not apply to a few rule types, even when the Use checkout? box is selected:
- Application rules
- Classes
- RuleSets
- RuleSet Versions
| - Libraries
- Agents rules
- System Settings
|
- You can't check out a rule that is a base rule when you or another developer has a related circumstance-qualified or time-qualified rule checked out.
-
If you forget which RuleSet or RuleSet Version a checked-out rule came from, expand the top section of the rule form. Click the link to access the checked in copy.
- Use the Restore operation () to undo (back out) a checked-in rule changes. See How to restore an earlier copy of a rule after check-in.
- When you access the checked-in edition of a checked-out rule, a personal RuleSet appears in the top section of the form as Checked out by.... Click the link to open the checked-out copy. (You can review, but not alter, this copy if it is checked out by someone else.) Privately checked-out rules do not display the personal RuleSets of users that have privately checked out the rules.
- To report on checked-out rules, create a report type of rule (report definition, list view, or summary view) with Data-Rule-Locking as the Applies To class. Create this rule using the rule form for the appropriate report type or using the V5 Report Wizard (Rule Locking data source).
Customizing the check-in procedure
You system includes an extension point activity — Rule-.SetApprovalDependency — that you can override with an activity in your application to customize the check-in procedure for your development team. This standard activity contains no steps; it is an extension point activity for you to override.
Designer Studio basics