Question

4
Replies
210
Views
PERKSATISH Member since 2013 5 posts
JP Morgan Chase
Posted: 4 years ago
Last activity: 4 years 4 months ago
Closed
Solved

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.

System Administration
Moderation Team has archived post
Share this page LinkedIn