using gs.sleep in a scoped application
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2015 03:39 AM
Hi,
I'm trying to use gs.sleep (1000) in a scoped application and I keep getting an exception:. com.glide.script.fencing.MethodNotAllowedException: Function sleep is not allowed in scope "xxx"
I've tried "GlideSystem.sleep(1000); " but get a similar exception: java.lang.SecurityException: GlideSystem is not allowed in scoped applications exception.
Anyone have any hints.
Thanks,
D.
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2021 08:10 AM
Hello,
Does anyone have an example of the commands used in the scoped application? I have followed this to a T, but can't seem to get it working...
I keep getting:
- 11:09:49.771 Evaluator: com.glide.script.RhinoEcmaError: undefined is not a function. Task.f9cb9000db65b410ef28f16c689619b7 : Line(1) column(0) ==> 1: vaVars.previous_graph_node="Sleep___577368f913f347e5a8ff820c034904e8";(function execute() {var globalUtils = new global.GlobalScopeUtils(); 2: globalUtils.sleep(5000);})();vaInputs.__silent_ScriptedAction_577368f913f347e5a8ff820c034904e8=true;null;