Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
1.9, 1.10
-
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.