Discussion

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

**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.

Comments

Keep up to date on this post and subscribe to comments

June 19, 2015 - 8:03am

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.

 

June 19, 2015 - 8:24am

Hi Asela,

 thanks for your response. But it refer only static API constants which can be used in the compare scenario.

June 22, 2015 - 6:01am

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

June 22, 2015 - 11:59am

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.

 

June 23, 2015 - 2:43am

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

June 23, 2015 - 1:13pm

Hi Asela,

Rulebase compare is to verify the ruleset across environments right??

Regards,

Gowthami

June 24, 2015 - 1:48am

Yes rulebase compare is to verify rulesets across environments to check if two environments are in sync or not.

June 24, 2015 - 2:16pm

Hi ,

Anyone tried to comapre a rule with its all old version in a single shot

regards,

Gowthami

June 25, 2015 - 5:28am

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

December 16, 2015 - 8:00am

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);