[Anthill-pro] What code or function call to issue to get prost processing script to fail ?

Ryan Smith rws at urbancode.com
Mon Jul 7 07:57:36 CDT 2008


Henning,

I would suggest just throwing and exception in your script instead of 
using the post-processing script. You could add the following in your 
script:


throw new Exception("Failing because ..... condition not met");



Ryan Smith

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