Thanks, Joe. I like the approach you suggest as it avoids the nested if/else's.
Dave ___________ David J. Miller Notes/Domino Automation Development Team 978-399-6023 (t/l 333-6023) david_mil...@notesdev.ibm.com From: Joseph J Veilleux <joeveill...@us.ibm.com> To: "David Miller" <david_mil...@notesdev.ibm.com> Cc: staf-users@lists.sourceforge.net Date: 06/01/2010 09:06 AM Subject: Re: [staf-users] Question on "paralleliterate" and "continue" Dave, we have several examples of this in the FATS Domino system and I can show you how we elected to handle it. Briefly, within the <paralleliterate> we set a "status of this operation" variable to a value which signifies success, and each sub-operation within that block is conditionalized with "...if I haven't failed yet, then do this...". It does add some conditionality (which, I acknowledge, you state you are trying to avoid) but not too much; at least these are not nested cascading if/else blocks which would cause the indentation/readability to become problematic. --------------------------------------------------------------------------------------- Joe Veilleux IBM/Lotus Domino Server Quality Engineering 550 King Street Littleton MA 01460 Email: joeveill...@us.ibm.com "David Miller" ---05/28/2010 12:12:05 PM---I have a use case where I want to use a "paralleliterate", and within that perform several operations. For each of these operat "David Miller" <david_mil...@notesdev.ibm.com> 05/28/2010 11:54 AM To staf-users@lists.sourceforge.net cc Subject [staf-users] Question on "paralleliterate" and "continue" I have a use case where I want to use a "paralleliterate", and within that perform several operations. For each of these operations I want to check for errors, and if an error occurs, end that "thread" (not proceed to perform any further operations for that thread, but leave the other threads to proceed). Normally, with a sequential "iterate", I would use a "continue" in the error path to do that. I tried the "continue" within a "paralleliterate" and it yielded: Unhandled "Continue" condition found at end of job. Is there some other way to do this other than having lots of nested if/elses to handle the error checking after each operation? Dave ___________ David J. Miller Notes/Domino Automation Development Team 978-399-6023 (t/l 333-6023) david_mil...@notesdev.ibm.com ------------------------------------------------------------------------------ _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users ------------------------------------------------------------------------------ _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
<<image/gif>>
<<image/gif>>
<<image/gif>>
<<image/gif>>
<<image/gif>>
<<image/gif>>
<<image/gif>>
<<image/gif>>
<<image/gif>>
<<attachment: pic32756.gif>>
------------------------------------------------------------------------------
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users