Support Article
Failed to reference single page property in RUF method
SA-27438
Summary
Referencing a single-page property in a Rule-Utility-Function parameter of Clipboard page type generated Java, which created a clipboard property at run time, resulting in a classcast exception. When the primary page is a single page, like pyWorkPage method, it works fine. When the primary page is like pyWorkPage.ABC, system throws Classcast exception on runtime and does not pick the activity.
Error Messages
** Java Exception: java.lang.ClassCastException: com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl incompatible with
com.pega.pegarules.pub.clipboard.ClipboardPage
Steps to Reproduce
Use @Utilities.pxExecuteAnActivity (Primary,"ActivityName") function as an expression in a rule.
Root Cause
All type conversions for the broken expression are skipped because VFORM_PEGA_PAGE_REFERENCE (in one of the Java classes) returns false from isValueLikeOrParam().
Resolution
Apply HFix-29236.
Published September 14, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.