There is a conflict between the global function "execute" in the job program of the script development model and the function "execute" in the job program, and the batch cannot be executed. Is the global function "execute" unavailable?

 
[Cause]
 Due to the language specification. Due to the scope relationship, execute of this is called.

[Handling method]
 Please make sure the scopes are different.

  Example: Method defined in the Procedure
----------------------------------------
 Procedure.define("foo", new Foo());
  function Foo() {
    this.executeRuntime = executeRuntime;
  }

  function executeRuntime() {
    execute("command"); // Global function execute execution
  }

----------------------------------------
Define the above code with a function other than the job program file so that it can be called from the job program.
Please refer to the API document for Procedure.define.
https://www.intra-mart.jp/apidoc/iap/apilist-ssjs/doc/platform/Procedure/index.html
Procedure.foo.executeRuntime () can be executed in execute of job.

-- Target ------------------------------------------------------------------------
iAP/Accel Platform/All Versions
------------------------------------------------------------------------------------


FAQID:534
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk