RemoteCache cache = cacheManager.getCache(); // Create the parameters for script execution Map params = new HashMap<>(); params.put("multiplicand", 10); params.put("multiplier", 20); // Run the script on the server, passing in the parameters Object result = cache.execute("multiplication.js", params);