OpenWGA 7.11 - TMLScript reference




This subobject provides services regarding OpenWGA Jobs

Retrieval As global object WGA.Jobs
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Properties and methods
Name Purpose
getLogURL(jobname) Returns an URL under which OpenWGA publishes the log of a running job
isRunning(jobname) Tests if the given job is currently running
names Returns the names of all currently registered jobs
run(jobname [, customOptions]) Runs a job
runScriptModule(module, [, customOptions]) Runs the code of a TMLScript module as a job
runTask(taskClass, options) Runs a custom Java task as Job
schedule(jobName, cronSchedule [, startDate, endDate]) Adds a schedule to a job
unschedule(jobName) Removes all schedules from a job
waitWhileRunning(jobname, timeout) Pauses execution until the job is no longer running or the timeout is reached