Language | Call | Description |
---|---|---|
Java | <script language="Java"> | Provides jobs in Java. |
java:JavaScript | <script language="java:JavaScript"> | Provides jobs in JavaScript. Usage of the "Rhino with Beans" implementation. Compatibility Syntax for Spidermonkey Syntax on 64Bit JobScheduler |
javax.script:JavaScript | <script language="javax.script:JavaScript"> | Provides jobs in JavaScript. Usage of Rhino engine (Java 1.7) / Nashorn engine (Java 1.8), that implements the "javax.script" scripting API.
Other script languages implementing the "javax.script" scripting API can be used with |
Spidermonkey (32bit) | <script language="Spidermonkey"> | Provides jobs in JavaScript. Usage of the "spidermonkey" Implementation. Only available on 32Bit. |
PowerShell | <script language="PowerShell"> | Provides jobs in PowerShell. Only available on Windows with Agents. |
VBScript | <script language="VBScript"> | Provides jobs in VBScript. Only available on Windows with JobScheduler Master. |
Perl | <script language="Perl"> | Provides jobs in Perl. |
ScriptControl:VBScript | <script language="scriptcontrol:vbscript"> | Provides jobs in VBScript 32Bit. Only available on Windows with JobScheduler Agent 32Bit. |
Jobs which use the JobScheduler API may be implemented in Java, JavaScript (the Mozilla Spidermonkey implementation) and Perl (Perl 5.8 is supported for Unix and an ActiveState implementation is required for Windows). In addition, JScript, VBScript and Powershell scripting languages are available on Microsoft Windows systems.
Since JobScheduler Version 1.3.10 the javax.script package is supported. Using this plugin different implementations for a lot of script languages such as javascript (Rhino implementation), groovy and python are available. The Spidermonkey implementation for javascript is marked as "deprecated".
Since JobScheduler Version 1.5 the Spidermonkey implementation of javascript is available only on 32 bit. For using javascript on 64 bit choose the "Rhino with Beans" implementation. This implementation is available on 32 bit as well as on 64 bit. The "Rhino with Beans" implementation is an extension to rhino and it replaces the Spidermonkey implementation. The "Rhino with Beans" implementation suits the purpose to port already existing javascript jobs to 64 bit. The usage of both implementations differs slightly, see: Differences between the Spidermonkey and "Rhino with Beans" engines
The following table shows the used engine dependent on the language attribute in <script language="...">
Language | Engine on 32 bit | Engine on 64 bit |
---|---|---|
Spidermonkey | Spidermonkey | --- |
java:JavaScript | Rhino with Beans | Rhino with Beans |
In order to use the API in Powershell, a seperate download and installation of the JobScheduler Powershell Adapter is required. See http://sourceforge.net/apps/mediawiki/jobscheduler/index.php?title=JSApi_Powershell
Jobs are implemented according to the