Closed
Size of work object
Is there a way to calculate the size of a work object(including the attachments)?
***Moderator Edit: Vidyaranjan | Updated Categories***
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
Is there a way to calculate the size of a work object(including the attachments)?
***Moderator Edit: Vidyaranjan | Updated Categories***
Hi Praveen,
I found a related discussion on this topic in the community. Do check if it works for you-
https://pdn.pega.com/community/pega-product-support/question/whats-maximum-size-work-object
Thank you!
Hi Praveen,
You could also refer to the post: https://pdn.pega.com/community/pega-product-support/question/obtain-size-pyworkpage
Thank you,
Madhuri Koravadi
To calculate the sizeof a clipboard page, below code will work
ClipboardPage cbPage = tools.findPage("pyWorkPage"); // pyWorkPage - Name of the clipboard page that we want to calculate the size.
int result = ((com.pega.pegarules.priv.PegaAPI)tools).estimatePageDataSize(cbPage);
cbPage.getProperty("PageSize").setValue(result); // setting java variable value to clipboard property (PageSize is the property name)
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.