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