Page 1 of 1

How do i check the return value of a routine ?

Posted: Sat Apr 19, 2008 6:13 am
by MOHAMMAD.ISSAQ
I'm calling a routine from a "Routine Activity" stage.
In the properties of the "Routine Activity" stage i set Trigger as "Return Vaue Conditional".

My routine will return value either '0' or '1'.
If the value is '0' then i'm calling the "UtilityAbortToLog" routine to abort the job Else just passing control to the other stage.

But the job while running it's not not aborting for value='0'.

Can anybody pls help me...

Waiting for valuable inputs..

Posted: Sat Apr 19, 2008 4:23 pm
by ray.wurlod
Reverse your logic. By default an OK trigger fires if the return value is 0, a failure trigger fires if the return value is non-zero.
Otherwise create custom trigger to handle 0 as a failure, and a Failure trigger to handle your "1 is good" case.

Posted: Mon Apr 21, 2008 11:37 pm
by MOHAMMAD.ISSAQ
Thanks ray for the help.
I created a custom trigger and now everything it's fine...

Thanks again....