OpenWGA 7.6 - TMLScript reference

WGA » WGA.Jobs
Method :

run(jobname [, customOptions])

On object WGA.Jobs
Usage Runs a job
Description

This will run a job just like it would have been run from the OpenWGA admin client manually.

The customOptions that can be passed optionally will be available to the tasks of the job via jobContext.getOption().

Parameters

jobname (String):

Name of the job to start

customOptions (Lookup table):

Additional options for the jobs tasks

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