Tag: SetVarFromScript

The action SetVarFromScript sets the variables from the header. All sub-scripts (called Execute)set the variables that were not already set.

Example Script

<ytriaAutomation Application="sapio365" console="true"
	randomVariable="Benito L├ęgo"
	wizardtitle="TESTING SCRIPT HEADER VAR"
	wizardaction="ZER"
	wizardversion="666"
	wizardcategories="categorizer: the test"
	wizarddescription="TESTING HEADER VARIABLES">
	<Execute FilePath="Common/RAW-GetOnlySecurityGroups.xml"/>
	<!-- the following are set by this script and are not to be replaced by the values from Common/RAW-GetOnlySecurityGroups.xml -->
	<echo value="randomVariable {%randomVariable%}"/>
	<echo value="wizardtitle {%wizardtitle%}"/>
	<echo value="wizardaction {%wizardaction%}"/>
	<echo value="wizardcategories {%wizardcategories%}"/>
	<echo value="wizardversion {%wizardversion%}"/>
	<echo value="wizarddescription {%wizarddescription%}"/>
	<!-- the following are set by Common/RAW-GetOnlySecurityGroups.xml or its sub-scripts because not defined in this script -->
	<echo value="wizardisnew {%wizardisnew%}"/>
	<echo value="wizardfamily {%wizardfamily%}"/>
	<echo value="wizardallorsel {%wizardallorsel%}"/>
	<echo value="wizardkeywords {%wizardkeywords%}"/>
	<echo value="wizardlastedit {%wizardlastedit%}"/>
	<echo value="wizardrequirements {%wizardrequirements%}"/>
</ytriaAutomation>
XML