ControlTier Inc. > CTL
 
Font size:      

Parallel-Addmacro

Description

Schedules a macro for execution within the referred parallel container.

Parameters

AttributeDescriptionRequired
refidThe name of the referred parallel containerYes
macroThe name of the macro to callYes

Parameters specified as nested elements

propertiesquery

A propertiesquery object.

Examples

Schedule instances of the sync-node macro based on nested propertiesquery


        <macrodef name="sync-node"> 
           <attribute name="node"/>
           <sequential>
              <exec executable="scp"
                    resultproperty="result.@{node}"
                    outputproperty="stdout.@{node}"
                    errorproperty="stderr.@{node}"
                    failonerror="false">
              </exec> 
           </sequential>
        </macrodef> 

	<parallel-addmacro refid="parallel-sync"
		            macro="sync-node">
           <propertiesquery refid="nodesquery"/>
	</parallel-addmacro>