Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • JobScheduler supports VBScript for implementation of jobs:
    • support for VBScript with a Master is available since long
    • support for ScriptControl:VBScript jobs with Agents is available with 
      Jira
      serverSOS JIRA
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId6dc67751-9d67-34cd-985b-194a8cdc9602
      keyJS-1623
  • The support for VBScript includes Shell jobs and API jobs:.that
  • Some minor differences exist between VBScript jobs for Master and Agents, see Compatibility between VBScript and ScriptControl:VBScript.
  • VBScript jobs are configured language support is configured with
    • <script language="VBScript"> for execution with a Master
    • <script language="ScriptControl:VBScript"> for execution with Agents.

...

Anchor
vbscript_scriptcontrol
vbscript_scriptcontrol
Compatibility between VBScript and ScriptControl:VBScript

  • Use of callback functions
    • VBScript jobs are required to implement as a minimum the callback function spooler_process().
    • ScriptControl:VBScript jobs can implement the spooler_process() function, however, they are not required to do so. Any script code that is added directly to the job script will implicitely be executed for a job step similar to spooler_process().
  • Use of the JobScheduler API
    • VBScriipt jobs make use of objects, methods and properties of the JobScheduler API for VBScript.
    • ScriptControl:VBScript jobs make use of objects and methods of the JobScheduler API for ScriptControl:VBScript
    • Syntactical differences include
      • With ScriptControl:VBScript no properties are available, instead the information can be accessed by methods:
        • VBScript example: spooler_task.id
        • ScriptControl:VBScript example: spooler_task.id()
      • With ScriptControl:VBScript assignments to properties are replaced by methods:
        • VBScript example: spooler_job.delay_after_error( 2 ) = 10 // A 10 second delay after the 2nd consecutive error
        • ScriptControl:VBScript example: spooler_job.set_delay_after_error( 2, 10) // A 10 second delay after the 2nd consecutive error
      • Objects can be specified as methods:
        • VBScript example: spooler_task.order.params
        • ScriptControl:VBScript example: spooler_task.order.params and spooler_task.order().params()