OpenWGA 7.2 - 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
Description

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.

Parameters

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