Uploaded image for project: 'JOE - JobScheduler Object Editor'
  1. JOE - JobScheduler Object Editor
  2. JOE-165

Parameter description can be shown as XML if Wizard is used from Parameter form

    XMLWordPrintable

Details

    • Fix
    • Status: Dismissed (View Workflow)
    • Minor
    • Resolution: Bogus
    • 1.9.4, 1.10
    • 1.9.6, 1.10
    • None
    • Win7

    Description

      Current Situation

      • When a JITL job is configured for a job that already has a shell script then descriptions of parameters for the JITL job will incorrectly shown as XML instead of text (see screenshot).

      Desired Situation

      • Parameter descriptions should be shown in clear text instead of XML

      How to set this up

      • Create a job (Jobs Tab, New Order Job)
      • Add a simple shell script
      • GoTo 'Parameter' form
      • Start wizard
        • Select a Job from 'Import Jobs' window e.g. JADE Job
        • Set Parameter(s) using 'Job Parameter' window
        • Complete wizard using 'Finish'
      • Select Parameter in Job 'Parameter' form. XML code will now be shown in 'Parameter description' window.

      For example, for the 'Operation' parameter of the JADE Job, instead of:

      • "send - transfer files by ....."
        the following is shown:
      • <?xml version="1.0" encoding .... [see attached screen shot]

      Configuration for two jobs is shown below. The 'new-order-job' job was created using the 'New Order' function and then the operation parameter was added using the 'Parameter' form wizard, the 'wizard-job' was created with the wizard from the start. Jobs have different <script language> settings.

      <spooler>
        <config>
          <jobs>
            <job order="yes" stop_on_error="no" name="new-order-job">
              <params>
                <param name="operation" value="copy" />
              </params>
              <script language="shell" />
              <run_time />
            </job>
            <job name="wizard-job" title="API Job for JobScheduler Advanced Data Exchange" order="yes" stop_on_error="no">
              <description>
                <include file="jobs/jadeJob.xml" />
              </description>
              <params>
                <param name="operation" value="copy" />
              </params>
              <script language="java" java_class="sos.scheduler.jade.JadeJob" />
              <run_time />
            </job>
          </jobs>
        </config>
      </spooler> 
      

      Analysis

      Situation is caused by incorrect use of JOE.

      With reference to the example configuration shown above:

      • The 'new-order-job' in the configuration was configured as a shell job and retains the script parameter for a shell script (<script language="shell" />) even though JOE has allowed the the later assignment of a JITL job.
        It is in this situation that the parameter descriptions generated with the JITL Job Wizard are shown incorrectly.
      • The correctly generated 'wizard-job' was generated from the start with the JITL job wizard. This job has the java class required for the job assigned (<script language="java" java_class="sos.scheduler.jade.JadeJob" />). Parameters are shown correctly in the Parameter description pane for this job.

      The error in JOE is that it allows the apparent allocation of a JITL job once a job has been generated as a shell job.

      Attachments

        Activity

          People

            ur Uwe Risse
            aa Alan Amos
            Andreas Püschel Andreas Püschel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: