JS - JobScheduler
  1. JS - JobScheduler
  2. JS-1623

Agent should support scripting languages for Windows Script Host (VBScript)

    Details

    • Type: Feature Feature
    • Status: Released (View Workflow)
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.5, 1.11
    • Component/s: None
    • Labels:
      None

      Description

      Current Situation

      • Use of any scripting languages is possible for jobs of type shell. The following scripting languages can in addition be used for jobs that make use of the JobScheduler API for Windows environments: the scripting languages VBScript and JScript
        • are supported for jobs that are executed with the Master
        • are not supported for jobs that are executed with the Agent

      Desired Behavior

      • The Agent should include support for the Windows Script Host languages VBScript and JScript.
      • The Windows Script Host is available for 32bit only, e.g. will access the 32bit Windows registry. Therefore an Agent has to be operated with a 32bit Java Virtual Machine to enable VBScript.
      • For ease of use VBScript can be configured with jobs and monitors by use of the language attribute (case insensitive):
        • Example
          <job>
              <script language = "ScriptControl:VBScript">
                  <![CDATA[
                  Function spooler_process()
                      spooler_log.info("This is spooler_process()")
              
                      spooler_log.info("JobName: " & spooler_job.name)
                      spooler_log.info("TaskID: " & spooler_task.id )
              
                      spooler_process=False    
                  End Function
                 ]]>
              </script>	
              <run_time/>
          </job>
          

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Robert Ehrlich
              Reporter:
              Andreas Püschel
              Approver:
              Santiago Aucejo Petzoldt
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: