【原因】
这是语言的工作原理。目前的作用域设置调用this的execute。
【解决方法】
请设置不同的作用域。
例:使用Procedure的定义方法
----------------------------------------
Procedure.define("foo", new Foo());
function Foo() {
this.executeRuntime = executeRuntime;
}
function executeRuntime() {
execute("command"); // 执行全局函数的execute
}
----------------------------------------
将上述的代码在Job程序文件以外的地方进行函数定义,并将其设置为可以从Job程序中调用的状态。
有关Procedure.define,请参阅API文档。
https://www.intra-mart.jp/apidoc/iap/apilist-ssjs/doc/platform/Procedure/index.html
使用Procedure.foo.executeRuntime(),可以在Job的execute中运行。
-- 适用对象 ----------------------------------------------------------------
iAP/Accel Platform/所有更新版本
--------------------------------------------------------------------------------
FAQID:534
在脚本开发模式的Job程序中,全局函数的“execute”与Job程序中的“execute”冲突,无法执行Job。不能使用全局函数的“execute”吗?