Page 1 of 1

Abort Sequencer only after jobs finish in case of failure

Posted: Thu Nov 28, 2013 7:05 am
by HemaV
Hi All,

Job1 Activity -> In job Triggers Custom-(Conditional) is selected for both Routine Activity1 and Terminator Activity1 to check for any ORA-ERROR
Job2 Activity -> In job Triggers Custom-(Conditional) is selected for both Routine Activity2 and Terminator Activity2 to check for any ORA-ERROR
Job3 Activity -> In job Triggers Custom-(Conditional) is selected for both Routine Activity3 and Terminator Activity3 to check for any ORA-ERROR

When i run my sequencer, Job1, Job2 and Job3 starts running parallely. Say Job3 finishes first and it immediately triggers Routine Activity3 which fails. At that time routine error message is written to error log file and immediately sequencer is aborted even without waiting for Job1 and Job2 to finish before aborting sequencer.

NOTE: In Terminator properties "Abort without sending STOP requests. and Wait for all jobs to finish first." is selected.

What needs to be done if i want my jobs to finish first before sequencer is aborted in above case?

Thanks in Advance

Posted: Thu Nov 28, 2013 7:13 am
by ArndW
Make 3 unconditional outputs, one on each of your 3 jobs, go to a sequencer set to "all". From there to a Nested Condition stage and the error output link of that stage should be along the lines of "Job0.$JobStatus <> 0 OR Job1.$JobStatus <> 0 OR Job2.$JobStatus <> 0"

Posted: Thu Nov 28, 2013 5:30 pm
by ray.wurlod
Actually the constant needs to be 1, or DSJS.RUNOK. 0 means "running".