There are multiple ways to define the threshold for the Page list. Threshold can be defined while generating the Page-list or define the threshold limit up-front and generate the list.
Could you be more eloborate about your requirement?
Posted: 7 years ago
Posted: 21 Apr 2015 8:14 EDT
James Kerns (JamesK69)
Senior Pega Developer
Agreed mate.Usually environ variables does define the threshold limit accross the application.But, in your case it is different from Page list to Page list.
For your reference, here is the snipet in environment variable looks like
For Enable of threshold:
<env name = “alerts/clipboard/listsizethreshold/enabled" value="true" /> For Warnsize:
<env name = “alerts/clipboard/listsizethreshold/warnsize" value="10000" /> For warntraceback:
<env name = “alerts/clipboard/listsizethreshold/warntraceback" value="false" /> For errorsize:
<env name = “alerts/clipboard/listsizethreshold/errorsize" value="1" />
I would suggest you to draft a reusable component and call after each Page list generation.
This component should accept two params
1. Page list name
2. Thresshold limit
Component should check the size of Page list against threshold limit and if list cross the threshold limit, post a WARN level alert message in the log.
I wouldn't say this is best approach, but an approach you can consider.