Question
Accenture
IN
Last activity: 29 Oct 2018 11:42 EDT
Flushing Data Pages
Hello,
We are using a data page with parameters and there is a possiblity to have multiple instances of data page for different parameters.
Please let us know how to flush data page from a data transform other than Remove option. With remove only one instance of data page is removed but not all.
Any suggestioins are appreciated.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
In Dt step, use java method as below to remove all instances of Data page,
@java("pega.getDeclarativePageUtils().deleteAllInstancesOfDeclarativePage(\"yourdatapagename\")")
set this to a dummy parameter like param.TempFlush to allow the DT to save.
-
Aravind Tulluri Patrick Gomes Jayantha Gallage Mateo Rojas Joshna Goriparthi and 2 More
Accenture
IN
Thanks for the details. It worked.
EPAM Systems, Inc.
ES
Hi Satish,
Thanks for posting on PSC.
You could remove the content of parameterized data page through an activity, as told by using Remove/Page-Remove with the passed parameter. ex-D_YourDataPage[ParamName:ParamValue]
Though, if you wish to flush all the available instances of a particular data page, call "FlushDeclarativePage" Activity and pass page name as the parameter to be flushed along with parameter pyFlushAll as true.
Or else, you can invoke an OOTB function "pega.getDeclarativePageUtils().flushPage(<YourPageName>));" to flush out data page instances.
Hope it helps in your requirement, please notify us if it does by marking this post as helpful/answered.
Thanks,
Asif
-
Silvia Zicca Priyabrata Biswas Mohammed Arif Ali Mattia Rosellini
Pegasystems Inc.
US
I am using Pega 7.3.0. I would like to delete all instances of a data page we'll call D_Page. There is D_Page[1], D_Page[2]..D_Page[543]. After reading this post I wrote an activity that has this step:
Call Rule-Declare-Pages.FlushDeclarativePage. The two params open to me are "PageName" and "result" but not pyFlushAll. How do I use this to delete all instances of D_Page? Is there another way to do this in 7.3?
-
praveen Lingam
Updated: 27 Feb 2018 12:22 EST
Pegasystems Inc.
US
Instead of trying to use FlushDeclarativePage, we used a data transform and added this code (mentioned by vanaa earlier) to it: @(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools, Param.PageName).
-
Yashwanth Reddy Karnati Sakhib Hussain Md Ehsan Alam Daniel Santacruz Dharani Murugan
Genworth Financial
US
You can call OOTB activity pzFlushDataPage if you are using an activity and if you are using a DT the above step works.
Thanks,
Goutham
-
Chandrasekhar Allampati Shiva rama krishna Narra VEENA KUMARI PALLAPOLU Ramachandra Raju Dantuluri Raghavendra Peddabudi and 3 More