setTimeout fails with an error in PAM (Process Automation Manager)
Error: -- ReferenceError: "setTimeout" is not defined.
Release : 4.3
limitation with Rhino engine.
With regard to setTimeout, there is a limitation with Rhino itself in executing this function so it must be noted that this functionality, if required, should be achieved by the user with a custom function and it can be included in the script by using include system function.
Also, more importantly, please note that our java script operator has a default execution time of 60sec which is configurable up to a maximum of 120 secs with a Configuration parameter itpam.js.exec.threshold.