OpenWGA 7.6 - TMLScript reference

WGA » WGA.Jobs
Method :

waitWhileRunning(jobname, timeout)

On object WGA.Jobs
Usage Pauses execution until the job is no longer running or the timeout is reached

Use this method if you want to continue execution of the current script not until a certain Job has finished execution.

If no job of that name is running while calling the method then the method returns directly.


jobname (String):

Name of the job

timeout (Number):

Maximum time to wait for the job to finish in seconds

Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events