Question
UMKC
US
Last activity: 31 May 2024 21:50 EDT
Delete a rule from locked ruleset
I have a rule which is in the wrong class (parent class).
I have save-as the rule into the required class (child class).
The old rule is in a locked ruleset, is there any way I can delete the rule from the locked ruleset?
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 31 May 2024 21:50 EDT
CollabPartnerz
IN
you cannot delete rules from locked ruleset. I suggest you to save-as that rule and change it state to withdrawn.
you also need to have updated rule in highest version then withdrawn rule.
hope this helps
Thank you
Maantic Inc
IN
You can create an utility to set the password of your own choice, then unlock it manually and delete it. But its no a recommended approach. Instead you save as the rule to a branch, withdraw it, then merge to a higher ruleset version.
UMKC
US
is there any advantage of saving the rule into a branch and then merging to a higher ruleset version, instead of directly saving the rule into higher ruleset and withdraw the rule like Anurag mentioned?
Maantic Inc
IN
The only advantage comes when there are a lot of members working in the same environment. Pega recommends to use branch strategy for optimization and parallel working strategy. If you're working alone then you can directly save to a higher ruleset.
Updated: 27 May 2024 7:53 EDT
Tata Consultancy Services
IN
Hi @KevinR17115962,
You cannot delete a rule that belongs to a locked ruleset version. However, in most situations, you can create a blocked or withdrawn rule in your application that masks a rule (makes invisible to rule resolution), that you no longer need in your application.
Or Else
If you have a DB Access, you can delete it through DB by Using the DELETE Query , as mention below, it will be deleted.
DELETE FROM TABLE_NAME where pxCreateOperator='OperatorID' and pzInsKey='Your Rule pzInsKey'
Note: If you delete the rule from the DB, you can't recover rule from the Pega Developer Studio.
Dev Studio, click Configure > Application > Development > Recent Actions menu item. Click the View Deleted
Could you please go through below two articles,
Unlock Ruleset Version by using Activity
I hope this will help you,
Thanks,
Ashok
Updated: 27 May 2024 5:42 EDT
Eclatprime Digital Private Limited
IN
Hi @KevinR17115962,
In the locked rule set, you cannot delete the rule, Pega does not suggest this approach, but we can achieve this by save as the rule into a higher version and marked as withdrawn, So the rule will not be picked from that rule set in the run time.
Regards,
Sai G
Pegasystems Inc.
IN
According to Pega's guidelines, you cannot delete a rule that belongs to a locked ruleset version. However, you can create a blocked or withdrawn rule in your application that masks a rule (makes it invisible to rule resolution) that you no longer need in your application. If you need to completely delete the rule, you would need to unlock the ruleset, delete the rule, and then lock the ruleset again. Please remember to always back up your system before deleting a class or rule.