Cernunnos Manual


${sequence()}

Description:

Obtains the next value from the specified sequence. See also <sequence>.

Reagents:

Name XPath Description Reagent Type Expected Type Required
SEQUENCE_NAME descendant-or-self::text() 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

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>