Discussion
HCL
IN
Last activity: 16 Dec 2015 8:00 EST
comparepages
Hi All,
can anyone explain me how the below code works,
java.util.List results = (java.util.List) pega.comparePages(firstPage,secondPage,ignoreMap);
Thanks in advance
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
EvonSys
LK
Please refer com.pega.pegarules.pub.clipboard package, IcomparePagesAPI interface, in public API.
It seems current implementation of this facility is considered a Pega private internal API.
HCL
IN
Hi Asela,
thanks for your response. But it refer only static API constants which can be used in the compare scenario.
EvonSys
LK
Hi Gowthami
According to the API, implimentation details of this method is PEGA private. so you'll be only able to guess how it works by looking at the parameters. You can get an idea by looking at Work-ComparePages activity Java step. PEGA does not promote the use of this method.
Regards
HCL
IN
Hi Asela,
Thanks for your explanation.
When we comparing application,it is not giving the expected output.Is there any way to achieve this.I tried to modify it after the comparison but it is not suit for all scenario.
For ex,
in app1,
Ruleset 1:a,Ruleset 2:b,Ruleset 3:c
in app2,
Ruleset1:a,Ruleset2:c1
If we compare this, it is giving ruleset 2 is value chnage of b.
EvonSys
LK
Hi Gowthami,
Sorry I did not completely undestand your question. However I believe using\analysing "rulebase compare" feature in PEGA would help (DesignerStudio-->System-->Tools-->Refactor Rulesets-->Rulebase compare)
Regards
HCL
IN
Hi Asela,
Rulebase compare is to verify the ruleset across environments right??
Regards,
Gowthami
Virtusa Corp.
US
Yes rulebase compare is to verify rulesets across environments to check if two environments are in sync or not.
HCL
IN
Hi ,
Anyone tried to comapre a rule with its all old version in a single shot
regards,
Gowthami
Verizon Wireless
IN
Gowthami,
we dont have any provision to compare a rule with all its old versions.
But you can compare 2 version of a rule by using Rule Diff utility which is available in the Pega > System > Tools > Refactor Rules > Compare Rules (you can select the rule from any 2 versions). I hope this helps you :)
Thanks,
Wiki
Accenture
IN
Hi ,
I'm trying to access the below code in a java function, it's not wirking and throwing an error "pega cannot be resolved ".
java.util.List results = (java.util.List) pega.comparePages(firstPage,secondPage,ignoreMap);