args[i++] = arg.getValue();
}
invocableEngine.invokeFunction(this.function.getName(), args);
}
} catch (ScriptException e) {
throw new OCommandScriptException("Error on execution of the script", this.function.getName(), e.getColumnNumber(), e);
} catch (NoSuchMethodException e) {
throw new OCommandScriptException("Error on execution of the script", this.function.getName(), 0, e);
} catch (OCommandScriptException e) {
throw e;
} catch (Exception ex) {
throw new OCommandScriptException("Unknown Exception", this.function.getName(), 0, ex);
} finally {
if (scriptManager != null && binding != null)
scriptManager.unbind(binding);
OLogManager.instance().warn(this, "Job : " + this.toString() + " Finished!");
isRunning = false;