Page 1 of 1

Sequencer Conditional flow not happenening

Posted: Sun May 11, 2008 2:48 am
by poornima.chandramouli
Hi,

I've a requirement like if a count of a particular file is greater than 0 then my sequencer should abort.

So i placed a execute command activity & checking the count of the file by using the command wc -l & at the triggers part, i was giving the condition like if the command output is > 0 then it was connected to a mail notification stage followed by a termination activity.

As per the log the record count was fetched by the execute command activity,but the sequncer was not getting aborted.

awaiting for ur valuable reply.

Posted: Sun May 11, 2008 4:16 am
by ArndW
What was the return value from your job activity?

Posted: Sun May 11, 2008 7:54 am
by chulett
Field Marks in the dynamic array output. Try either:

Code: Select all

StageName.$CommandOutput<1> > 0
or

Code: Select all

Convert(@FM,"",StageName.$CommandOutput) > 0

Posted: Tue May 13, 2008 1:18 am
by poornima.chandramouli
I used the following command & it executed successfully,

StageName.$CommandOutput<1> >= 0

Thanks

Posted: Tue May 13, 2008 1:38 am
by ArndW
I'll ask the question again - what was the output of the command activity. Please paste it, without editing.

Posted: Tue May 13, 2008 2:29 am
by mc_harsha
Check the return code of your unix command.

Unix command executed successfully will return '0', irrespective of your result(wc -l).
I hope this helps to solve the problem.

Posted: Tue May 13, 2008 7:10 am
by chulett
Guys, problem solved. :?

mc_harsha - please mark the post as Resolved.