jd.setTerminatedWithError(false);
}
Binding binding = new Binding((Map) jobData.get(SchedulerConsts.CONFIG_JOB_PARAMS));
GroovyShell shell = new GroovyShell(binding);
Script script = shell.parse(groovyScript);
retVal = script.run();
log.info("job [{}] executed successfully , Groovy script returned {}", new Object[]{jobName, retVal });
}
catch (CompilationFailedException e)
{
log.error("An error occurred while parsing the script. Error message is {}", new Object[]{e.getMessage() });