Question
Ford
IN
Posted: Jun 3, 2021
Last activity: Jun 3, 2021
Last activity: 3 Jun 2021 8:00 EDT
Closed
I try to use function in local library in expression builder but it throws error like this
"Compilation failed for com.pegarules.generated.custom.PegaExpression Java source: package com.pegarules.generated.custom; import com.pega.pegarules.priv.*; import com.pega.pegarules.priv.database.*; import com.pega.pegarules.priv.clipboard.PegaClipboardPage; import com.pega.pegarules.priv.generator.DependentRuleInfo; import com.pega.pegarules.priv.util.RulePool; import com.pega.pegarules.pub.*; import com.pega.pegarules.pub.clipboard.*; import com.pega.pegarules.pub.context.*; import com.pega.pegarules.pub.database.*; import com.pega.pegarules.pub.dictionary.*; import com.pega.pegarules.pub.infengine.*; import com.pega.pegarules.pub.runtime.*; import com.pega.pegarules.pub.services.*; import com.pega.pegarules.pub.util.*; import com.pega.pegarules.pub.generator.UnresolvedAssemblyError; import com.pega.ibm.icu.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.Set; public class PegaExpression { public static Object evaluate(PublicAPI tools, ClipboardPage myStepPage) { PegaAPI pega = (PegaAPI) tools; ClipboardProperty pz_1 = pega.<java.util.Date>resolveMethodCall("FRVDate--(int)", "FRVDate", null, null, new Object[] { 44235 }); return (pz_1); } } |
Show More
"Compilation failed for com.pegarules.generated.custom.PegaExpression Java source: package com.pegarules.generated.custom; import com.pega.pegarules.priv.*; import com.pega.pegarules.priv.database.*; import com.pega.pegarules.priv.clipboard.PegaClipboardPage; import com.pega.pegarules.priv.generator.DependentRuleInfo; import com.pega.pegarules.priv.util.RulePool; import com.pega.pegarules.pub.*; import com.pega.pegarules.pub.clipboard.*; import com.pega.pegarules.pub.context.*; import com.pega.pegarules.pub.database.*; import com.pega.pegarules.pub.dictionary.*; import com.pega.pegarules.pub.infengine.*; import com.pega.pegarules.pub.runtime.*; import com.pega.pegarules.pub.services.*; import com.pega.pegarules.pub.util.*; import com.pega.pegarules.pub.generator.UnresolvedAssemblyError; import com.pega.ibm.icu.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.Set; public class PegaExpression { public static Object evaluate(PublicAPI tools, ClipboardPage myStepPage) { PegaAPI pega = (PegaAPI) tools; ClipboardProperty pz_1 = pega.<java.util.Date>resolveMethodCall("FRVDate--(int)", "FRVDate", null, null, new Object[] { 44235 }); return (pz_1); } } Details: Optional[---------- 1. ERROR in /com/pegarules/generated/custom/PegaExpression.java (at line 25) ClipboardProperty pz_1 = pega.<java.util.Date>resolveMethodCall("FRVDate--(int)", "FRVDate", null, null, new Object[] { 44235 }); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type mismatch: cannot convert from Date to ClipboardProperty ---------- 1 problem (1 error) Compile failed. ]" |
I try to use function in local library in expression builder but it throws error like this
Show Less
***Edited by Moderator: Pooja Gadige to move from Pega Academy to Product, add platform capability tag***
To see attachments, please log in.