sequence

Description

Provide a sequence number which is incremented each time the job is executed.

Properties

NameDescriptionRequired
name The name of this job. No.
current The current sequence number. Read only.
from The current sequence number. No, defaults to 0.
watch This can be any object which will be watched, and when it changes the sequence will be reset. This will most likely be a date. null

Example


 <sequential name="Sequence of Files>
   <sequence id="seqnum"/>
   <variables id="vars">
     <format name="seqnum-formatted" number="${seqnum.current}" format="0000"/>
   </variables>  
   <exists file="balances${vars.seqnum-formatted}"/>
 </sequential>
 
    


(c) Rob Gordon 2005