Question

Update ruleset record in Class rule.

Hi All,

I've created a Implementation class in FW rule set, need to update the ruleset of that class rule as implementation. Is there any way to do it?

***Moderator Edit: Vidyaranjan| Converted from discussion to question***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
March 13, 2016 - 1:25am

>>> But why does pega restricts to modify the RS record in class?

  • One class rule can not exist in multiple rulesets and hence there is a restriction

>>> what is the pega recommended way of implementation?

  • need to refractor the classes...

Wizards 'Move Rules', 'Delete a class' & 'Rename a Class' are considered.

  • Create a Dummy class --> Move all rules from its original class to dummy class --> Delete the original class --> Re-create the original class on the desired ruleset --> Move rules from dummy class back to original class.
  • Create a Dummy class --> Move all rules from its original class to dummy class --> Delete the original class --> Re-name dummy name to Original class.
    • for moving rules - we had to ensure the classes are in inheritance path.

Comments

Keep up to date on this post and subscribe to comments

Pega
March 12, 2016 - 6:49am

Use the method 'Obj-Open-By-Handle' – Open the class rule form – Update pxUpdateDateTime, pyInitialVersion & pyRuleset – Obj-Save/SAVE then CommitWithErrorHandling

March 13, 2016 - 12:13am
Response to sahup1

Thanks for the reply. As we know rules are instances of the rule- class we can manipulate them sing ins Handel. But why does pega restricts to modify the RS record in class? Is there any specific reason for that? Like I mentioned in my previous question if some created an implementation class using FW RS record  later they wanted to change the RS to an implementation level what is the pega recommended way of implementation?

Pega
March 13, 2016 - 1:25am

>>> But why does pega restricts to modify the RS record in class?

  • One class rule can not exist in multiple rulesets and hence there is a restriction

>>> what is the pega recommended way of implementation?

  • need to refractor the classes...

Wizards 'Move Rules', 'Delete a class' & 'Rename a Class' are considered.

  • Create a Dummy class --> Move all rules from its original class to dummy class --> Delete the original class --> Re-create the original class on the desired ruleset --> Move rules from dummy class back to original class.
  • Create a Dummy class --> Move all rules from its original class to dummy class --> Delete the original class --> Re-name dummy name to Original class.
    • for moving rules - we had to ensure the classes are in inheritance path.

June 27, 2016 - 8:32pm

Refactoring is best option. Changing ruleset only on class rule might introduce other issues like ruleset mismatch between rules' ruleset and class's ruleset.

December 28, 2016 - 10:05pm

Thank you SahuP1. It worked.