Question
4
Replies
246
Views
JP Morgan Chase
Posted: May 4, 2016
Last activity: May 11, 2016
Hashmap as parameter in Function throwing error
Here's how can we define a function with hashmap as parameter in JAVA
public static void mapEDPIBeaconFields(String page, int ind, Map<String, Object> map)
{
System.out.println("\nmapEDPIBeaconFields: "+map.get("id").toString());
System.out.println("\nmapEDPIBeaconFields: "+page);
System.out.println("\nmapEDPIBeaconFields: "+ind);
}
I tried to create a function in Pega , it is throwing error. Attached the screenshot of the error and the Util library used.
Hello Satish,
Did you check Pega OOTB functions created and used on Hashmap? If not, pls check the following functions and build the logic accordingly.
pyGetPageAsHashMap, pyGetPropertyAsHashMap, pygetHashMapForPageList
Thanks,
Ravi Kumar.