if (scriptPath == null) {
LOGGER.error("Script '"+chartScriptResource.getName()+"' has a null path");
return;
}
ScriptingConfiguration scriptConf = new ScriptingConfiguration("id","Script: " + chartScriptResource.getName(), "Descr: " + chartScriptResource.getDescription());
// scriptConf.setWorkingDirectory(tempDir.getAbsolutePath()); // TODO checkme
scriptConf.setLanguage("groovy");
scriptConf.setScriptFile(scriptPath);
scriptConf.setProperties(properties);
// ScriptingService scriptService = new ScriptingService("scriptId","scriptName","scriptDescr");
// if (!scriptService.canCreateAction(scriptConf))
// throw new IllegalArgumentException("The arguments for the ScriptingAction are not complete or illegal");