ControlTier Inc. > CTL
 
Font size:      

Property-Results

Description

Processes a propertiesquery and executes successtarget or failtarget based on each matched property's value.

Parameters

AttributeDescriptionRequired
valueThe name of the referred parallel containerYes
failtargetThe name of the target to call when matched property is equal to valueYes
successtargetThe name of the target to call when matched property is not equal to valueYes

Parameters specified as nested elements

propertiesquery

A propertiesquery object.

Examples

Processes the propertiesquery syncresults and will execute dosuccess or doerror target based on each property's value equal to zero or not

	<property-results value="0"
		             successtarget="dosuccess"
		             failtarget="doerror">
           <propertiesquery refid="syncresults"/>
	</property-results>

        <target name="dosuccess">
           <echo level="info">object ${node} succeeded</echo>
        </target>

        <target name="doerror">
           <propertycopy from="stderr.${node}"
                         property="err"/>
           <echo level="info">object ${node} failed, stderr: ${err}</echo>
        </target>