How to discard a rule from another operator
Yesterday, I ruined my Dev Studio access because I private-edited an OOTB rule (pzpega_ui_invoke.js
). So I needed to discard it urgently or I would lose my operator and all my work. Unfortunately I no longer had access to the Dev Studio using my operator so I needed to do it from another operator. Here's how I accomplished it.
The following steps can be carried out by an operator other than the owner.
Note: The rule to be removed is a Text File rule, so its class is Rule-File-Text
. If it were a Property rule, its class would be Rule-Obj-Property
.
Remove the actual checked-out instance
Create a Connect SQL rule with the following SQL statement in the Delete tab (replace the class, rulename and ruleset values):
DELETE FROM {Class:Rule-File-Text} WHERE pyrulename='webwb pzpega_ui_invoke js' AND pyruleset='deivit@';
Create an activity with only one step: RDB-Delete to execute the Connect SQL rule.
Remove the Data-Rule-Summary instance
Removing the actual checked-out instance alone is not enough to make it disappear from the list of checked out records. Create a Connect SQL rule with the following SQL statement in the Delete tab (replace the class, rulename and ruleset values):
DELETE FROM {Class:Data-Rule-Summary} WHERE pyrulename='webwb pzpega_ui_invoke js' AND pyruleset='deivit@';
Create an activity with only one step: RDB-Delete to execute the Connect SQL rule.
Reference:
- https://collaborate.pega.com/discussion/how-discard-and-clean-other-developers-checked-out-rules
Comments
Post a Comment