Cernunnos Manual


<sequence>

Description:

Creates a new sequence for use with ${sequence}.

Reagents:

Name XPath Description Reagent Type Expected Type Required
SEQUENCE_NAME @sequence-name Optional name for the sequence created by this task. If omitted, the name 'SequenceTask.DEFAULT_SEQUENCE_NAME' will be used. PHRASE java.lang.String No
START @start Optional integer which will be the first number used in the sequence. If omitted, one (1) will be used. PHRASE java.lang.Integer No
INCREMENT @increment Optional integer amount by which to increment the sequence each time it is used. INCREMENT may be positive or negative. If omitted, one (1) will be used. PHRASE java.lang.Integer No
SUBTASKS * The set of tasks that are children of this task. NODE_LIST java.util.List No

Examples:

Prints 'a=1' through 'z=26' to standard output:

 
       
        <sequence> 
          <for-each items="${groovy('a'..'z')}"> 
            <echo-ln>${Attributes.OBJECT}=${sequence()}</echo-ln> 
          </for-each> 
        </sequence> 
       
    

Prints 'a=10' through 'z=-15' to standard output:

 
       
        <sequence increment="${groovy(-1)}" start="${groovy(10)}"> 
          <for-each items="${groovy('a'..'z')}"> 
            <echo-ln>${Attributes.OBJECT}=${sequence()}</echo-ln> 
          </for-each> 
        </sequence>