Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-709

JITL FileExistJob/JITL FileNotExistJob - the return code should be set depending on the execution result

    XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 2.5.2, 2.6.0
    • None

    Description

      Current Situation

      • When executing the JITL FileExistJob or JITL FileNotExistJob Jobs then
        • by default, the job execution will always finish successfully, regardless of whether a file/directory was found or not.
          • the return code of a successful execution is always the same: 0
        • job execution may fail if e.g. the raise_error_if_result_set_is job argument is used
          • the return code of a failed execution is 99

      Desired Behavior

      • In case of successful execution the return code should be set depending on the execution result:
        • FileExistJob
          • return code=0 (file exists)
          • return code=1 (file does not exist)
        • FileNotExistJob
          • return code=0 (file does not exist)
          • return code=1 (file exists)

      Attachments

        Activity

          People

            re Robert Ehrlich
            Ajay-Kumbhkar Ajay Kumbhkar
            Ajay Kumbhkar Ajay Kumbhkar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: