[Anthill-pro] What code or function call to issue to get prost
processing script to fail ?
Eric Minick
etm at urbancode.com
Mon Jul 7 10:58:55 CDT 2008
Henning,
I don't think you can manage the exit codes of the evaluate script
steps. The simplest way to cause the step to fail is just to throw an
exception.
Alternatively, you could log an error message and have a post-processing
script pick up on that error message. To log a message in an evaluate
script step, you can do something like:
commandOutput.println("ERROR: The settings are wrong");
-- Eric
henning.behrens at uniserv.com wrote:
> Hello all,
>
> I want one of my Evaluate Script Steps to return a value, so the Post Processing Script of the step returns "Fail". I use the default Post Processing script (return Fail.unless(ExitCode.is(0))). If I return -1 in my Evaluate Script Step it doesn't fail. I thought -1 is different from 0 ;-).
>
> Could anyone point me the right way?
>
> Thanks in advance
>
> _____________________________________________________
>
> Dipl.-Math. Henning Behrens
> SDC - Software Development & Consulting PJT - Project Management Team
>
> Uniserv GmbH
> Rastatter Strasse 13
> 75179 Pforzheim
> Germany
> Phone +49 7231 936-2135
> Fax +49 7231 936-2500
> Email mailto:henning.behrens at uniserv.com
> http://www.uniserv.com
> http://www.uniserv.com/demo
> _____________________________________________________
>
> Uniserv GmbH
> Sitz der Gesellschaft: Pforzheim
> Geschäftsführer: Roland Pfeiffer
> Registergericht: Mannheim HRB 501535
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
More information about the Anthill-pro
mailing list