I cannot execute the job because “execute” of the global function and “execute” function in the job program is conflicting in the job program of script development model. Is “execute” of the global function not available?

 
 [Cause]
 This is because of the language specification. Execute of this is called due to a scope relationship. 

 [Handling method]
 Make sure the scope is different.

 Example: How to define with Procedure
----------------------------------------
 Procedure.define("foo", new Foo());
  function Foo() {
    this.executeRuntime = executeRuntime;
  }

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

----------------------------------------
This code can be made possible from job program by doing function definition without job program file. 
Please refer to the API document for Procedure.define. 
https://www.intra-mart.jp/apidoc/iap/apilist-ssjs/doc/platform/Procedure/index.html
A function of Procedure.foo.executeRuntime() can be executed in execute of the job. 

-- Target ------------------------------------------------------------------------
iAP/Accel Platform/All Update
--------------------------------------------------------------------------------


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