Question
CVS CareMark
US
Last activity: 28 May 2017 22:23 EDT
Page-Set-Messages in Pre Activity
Hey, I'm using Page-Set-Messages on the Pre Activity. When the assignment is opened in Perform, screen loads and triggers thepage-set-message from the pre activity. But the error message is not shown on the UI, but i can see the message on clipboard. Any help would be highly appreciated!!!
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
FR
Hi,
On which page are you setting your message ?
CVS CareMark
US
pyWorkPage, in clipboard I'm able to see it under pyWorkPage.
Nothing much I'm doing in activity... I wrote an activity in my work class, Page-Set-Messages. that all!!!
Hope this might help you: Shortly I will explain how to get your messages visible on UI.
Background: It used to work up to 6.3 SP1 (I have reached out to Pega GCS team and they confirmed that a bug in 6.2 made it work . I know it's new theory). A hot fix in 6.3 on wards made it working (if you are using 63 or 6.3 SP1, you can contact GCS for hotfix).
How Page-Set-Messages method works (per GCS):
I guess your scenario might be similar: A Data- section was being refreshed and message was being set on work-. It does not work that way, whenever you are using a Page-Set-Messages method in your work class activity, you should not call this activity from a data class activity by using page. Because there has to be single call for page set to persist when you will be refreshing work section. Otherwise it will be removed.
So, try using Property-Set-Messages even though you don't want to account the error message you display on UI to any property (but try to specify your page property as the target property for error message).
Hope this might help you: Shortly I will explain how to get your messages visible on UI.
Background: It used to work up to 6.3 SP1 (I have reached out to Pega GCS team and they confirmed that a bug in 6.2 made it work . I know it's new theory). A hot fix in 6.3 on wards made it working (if you are using 63 or 6.3 SP1, you can contact GCS for hotfix).
How Page-Set-Messages method works (per GCS):
I guess your scenario might be similar: A Data- section was being refreshed and message was being set on work-. It does not work that way, whenever you are using a Page-Set-Messages method in your work class activity, you should not call this activity from a data class activity by using page. Because there has to be single call for page set to persist when you will be refreshing work section. Otherwise it will be removed.
So, try using Property-Set-Messages even though you don't want to account the error message you display on UI to any property (but try to specify your page property as the target property for error message).
I had opened an SR back in April this year and had it going for couple months with discussions, debates etc..Resolution for the SR was ( SR-132046) that Pega GCS will open an enhancement request so that Page-Set-Messages will display messages with out too much of logic that's mentioned above in bold.
Or alternatively if you have a Step Page on Page-Set-Messages step, that's different in context than the work page, remove it and test Page-Set-Messages behavior (am sure that will work too).
PS: If the error message is coming from Message rule instead of hard-coded message, you might need to move that rule to appropriate context as well.
CVS CareMark
US
Thanks Govardhan for your reply. I don't have any step page mentioned.
My activity is clear.... Having only one step. Page-Set-Messages.
Calling from Class A-B-C-Work-X.
I'm using 6.3 SP1 only to answer to your above text. Without step Page also it is not working(Means error message is not shown on UI when assigned is opened).
Do you have any section includes like a data class section in a work class section? Where is the button located that calls your activity with page-set-messages method
If it's just work class section inside perform harness rendered via flow action, check the error message settings under HTML tab of Harness/Section
CVS CareMark
US
My section is from work class. I don't have any button. I'm just loading the assignment, while loading in pre activity I'm setting a Page-Set-Message. I have checked my Harness rule as well, it has Show Form level errors selected with "Top of Harness". Still not able to see the result.
Ok. If all sides are clear, then try refreshing the harness after page-set-messages step.
Updated: 28 Sep 2015 13:52 EDT
Pegasystems Inc.
IN
Can you use Property-Set-Messages instead of Page-Set-Messages and check if it is displayed.
I just created a sample Case Type and replicated the scenario in 7.1.7. This looks like a bug in PRPC and a possible SR . By definition pre-processing activity is executed first and then the UI rendering happens. In the same scenario, If we are to display a section with new clipboard data, we all know it works. And the message on clipboard page or property to that matter should get displayed too.
CVS CareMark
US
Thanks Govardhan, by taking your time and testing it. I will go ahead and raise a SR for Pega.
Cognizant Technology Solutions
US
Did you get a solution for this from Pega ? I am using 7.1.9 personal edition and I am not able to see any Page-set-messages on screen