Page 1 of 1

How to abort sequenceafter unix script returns value >0

Posted: Wed Oct 17, 2012 9:16 am
by jagadam
Hi all,
I have a unix shell script which checks the count of stored procedure error from a text file and if there is any error my unix script returns a value greater than 0(Using word count)and then using execute command stage to check if the trigger >0 i am stopping the sequence job.
Now the requirement is to abort the sequence if trigger command is greater than 0. How can i achieve this? Can anyone please share their inputs.

Posted: Wed Oct 17, 2012 9:26 am
by chulett
One way would be to turn on the "Automatically handle activities that fail" option as it considers a non-zero return to be a failure. Or you could run your failure check trigger to a Terminator stage.

Posted: Wed Oct 17, 2012 12:22 pm
by chetan.c
Hi,
Another option would be to use the Terminator Activity.
Based on the condition the flow can be directed towards the terminator activity.


IBM docs.
http://tinyurl.com/czfdh82.


Thanks,
Chetan.C