Cernunnos Manual


<with>

Description:

Creates one or more request attributes using KEYS and VALUES, then invokes subtasks.

See also: <with-attribute>

Reagents:

Name XPath Description Reagent Type Expected Type Required
KEYS attribute/@key Name of a request attribute that will be available to subtasks. NODE_LIST java.util.List No
VALUES attribute/text() Value of the request attribute. NODE_LIST java.util.List No
SUBTASKS subtasks/* The set of tasks that are children of this task. NODE_LIST java.util.List No

Examples:

Creates request attributes named 'foo' and 'myPath' then displays the value of each.:

 
       
        <with> 
          <attribute key="foo">bar</attribute>  
          <attribute key="myPath">${Attributes.ORIGIN}</attribute>  
          <subtasks> 
            <echo-ln>foo=${foo}</echo-ln>  
            <echo-ln>myPath=${myPath}</echo-ln> 
          </subtasks> 
        </with>