Question


DXC Technology Company
IN
Last activity: 25 Jun 2018 9:02 EDT
How to edit a rule using activities
I have a requirement for which we want to do below actions using activities:
1. Checkout the rule
2. Update few embedded properties in that
3. Checkin the rule (same verison or in differnt version)
***Edited by Moderator Marissa to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Pegasystems Inc.
IN
Hi,
Open the rule instance you want to update. Then you can use Rule-.RuleCheckOut activity to checkout a rule instance and use Rule-.RuleCheckIn activity to check in the rule.
Regards,
Santhosh


Pegasystems Inc.
IN
You can do below thing also
1. Open the rule using Obj-Open-By-Handle
2. Update the rule/page
3. Commit the page. then I think you no need to do check out and check in


DXC Technology Company
IN
Doing this, will not create history entries right? Also, not sure, it goes through proper validations or not.


Pegasystems Inc.
IN
It will not create history entries.
Yes, not sure validations will be fired or not


DXC Technology Company
IN
I Tried Rule-.RuleCheckOut & Rule-.RuleCheckIn,
after execution, rule is going into checkout mode. that means it's in my private edit list, mainly for Decision data rule.
-
Madhab Paul


Pegasystems Inc.
IN
Hi,
I think that might be because the DT rule is in locked rule set.
Thanks,
Santhosh


DXC Technology Company
IN
Rule is in unlocked ruleset. we saw, this issue is just happening with decision data rules only(may be with other Decison rules). when tried the same with WHEN rules, its working as expected


Pegasystems Inc.
IN
Hi,
Do you see any errors in tracer or log file while doing this ? Is there anything customized for decision data rules class?
Thanks,
Santhosh
-
Siddharth Aggarwal