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

Event Monitor should set the exit code in the generated event correct

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.9, 1.10
    • 1.9.12, 1.10.7, 1.11
    • None

    Description

      Current Situation

      When using the monitor com.sos.jitl.eventing.EventMonitorTaskAfter in a job, the created event always has the exit code 0.

      Example: This job in a job chain should create an event with exit_code=99

      
      <job  order="yes" stop_on_error="no" name="job1">
          <params >
              <param  name="scheduler_event_class" value="test"/>
              <param  name="scheduler_event_action" value="add"/>
              <param  name="scheduler_event_id" value="1"/>
          </params>
      
          <script  language="shell">
              <![CDATA[
      echo hello world
      exit 99
              ]]>
          </script>
      
          <monitor  name="process0" ordering="0">
              <script  language="java" java_class="com.sos.jitl.eventing.EventMonitorTaskAfter"/>
          </monitor>
          <run_time />
      </job>
      

      Expected Behaviour

      When using the monitor com.sos.jitl.eventing.EventMonitorTaskAfter in a job, the created event should have the exit code coming from the executed job.

      Attachments

        Activity

          People

            ur Uwe Risse (Inactive)
            ur Uwe Risse (Inactive)
            Santiago Aucejo Petzoldt Santiago Aucejo Petzoldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: