Question
Highmark Health
US
Last activity: 11 Dec 2017 9:08 EST
How to clear "node " level data pages across all nodes
Is there are any function /process to clear data pages(node level parameterized pages) in all nodes ( we need a utility UI to clear data pages on click)
we are using a function @(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools, DataPageName) this not clearing pages in all nodes it just clearing page on current node.
Please, anyone, have any other approach
Pega Version: 7.2
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
For Node-scoped data pages, the system removes data page instances from all nodes in the cluster.
Pegasystems Inc.
IN
Highmark Health
US
Thank you
The function is clearing data page in that particular node only, checked after pulse agent execution still page is not getting cleared on other nodes.
Vishnu.S
EPAM Systems, Inc.
ES
Hi Vishnu,
Thanks for posting on PSC.
You can remove the data page in multiple ways,
Hi Vishnu,
Thanks for posting on PSC.
You can remove the data page in multiple ways,
- In an activity, use the Page-Remove step with the data page as the step page. This method deletes read-only and editable data page instances regardless of the scope, as long as the data page is accessible by the thread that runs the activity.
- Use the ExpireDeclarativePage rule utility function that takes the data page name as a parameter to delete read-only, non-parameterized data page instances:
- For Thread-scoped data pages, the system removes data page instances from the current thread of the requestor.
- For Requestor-scoped data pages, the system removes data page instances from the current requestor.
- For Node-scoped data pages, the system removes data page instances from all nodes in the cluster.
Note:- As a best practice, do not use the ExpireDeclarativePage rule utility function to remove a data page. This function is soon to be deprecated.
Hope it answers your query, kindly notify if it does.
Regards,
Asif
-
Ramachandra Raju Dantuluri
Highmark Health
US
Asif
Page-remove will work only for a single page, if data page is a parameterized page by giving complete data page name with the parameter it will delete that particular page in all nodes.
but if we want to delete the complete page without sending parameter page-remove is not working.
Thank you
Vishnu.S
Pegasystems Inc.
IN
Hi Vishnu,
As you said DataPage uses parameter, there would be multiple pages as instance and hence you need to loop through them and remove them.
Thanks,
Ujjwal
JPMorgan Chase & Company
US
Hi Vishnu,
You can write a java step and use the following method :
pega.getDeclarativePageUtils().deleteAllInstancesOfDeclarativePage("yourdatapagename");
This deletes all the instances of the data page.
-
Mandeep Rawat