public void setJsonParameters(Map<String, Object> allParameters) throws Exception { script = (String) allParameters.get("script"); List<?> params = (List<?>) allParameters.get("args"); args = Lists.newArrayList(Iterables.transform(params, new ArgumentConverter(getKnownElements()))); }
public void setJsonParameters(Map<String, Object> allParameters) throws Exception { script = (String) allParameters.get("script"); List<?> params = (List<?>) allParameters.get("args"); args.addAll(Lists.newArrayList( Iterables.transform(params, new ArgumentConverter(getKnownElements())))); }
public void setJsonParameters(Map<String, Object> allParameters) throws Exception { setId(new ArgumentConverter(getKnownElements()).apply(allParameters.get("id"))); }