Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1623

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

    XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.10.5, 1.11
    • None
    • 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>
          

      Attachments

        Issue Links

          Activity

            People

              re Robert Ehrlich
              ap Andreas PĆ¼schel
              Santiago Aucejo Petzoldt Santiago Aucejo Petzoldt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: