Yes, when the task (in your case a loop) contained within a timer element 
ends, the timer ends.  A timer is used to control the maximum time that a 
task can run before stopping the task at the end of the specified 
duration.  If the task completes before the duration time, then the timer 
is ends (and the RC will be set to 0 indicating the task ended before the 
specified duration).

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   "Zhu, Cindy" <cindy....@ihs.com>
To:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>, 
Date:   03/27/2014 05:35 PM
Subject:        [staf-users] Breaking out of the timer



Hi,
 
I have a very simple STAX job like this:
 
<timer duration="productTimeout">
                <loop while="finished == 0">
                                ….
                                <script>
finished = 1
                                </script>
…
                </loop>
</timer>
 
I know “finished = 1” will break out of the loop statement, I was 
wondering if “finished = 1” breaks out of the timer too? If no, how can I 
jump out of the timer when “finished = 1”?
 
Thanks,
 
Cindy
 
 
 
------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to