Tag: Execute
The action Execute lets you embed the execution of an external script within your primary automation script.
<Execute InputFilePath="C:\dev\Temp_XML\replicationEZ-secondaryscript.xml"/>
Tag Attributes
| Attributes | Attribute Value | Value Description | Comment |
| FilePath | User Definable | The external script file path and name to be used | One must be selected
The two attributes differ in their validation approach—see detailed description. |
| InputFilePath | User Definable | The external script file path and name to be used | One must be selected
The two attributes differ in their validation approach—see detailed description. |
Detailed Description
The Execute action operates as if the entire secondary script contents were included in the primary script.
| Note | The two available attributes differ in their validation approach.
Using the example file path C:\Folder\File.xml as an example the following verifications will occur:
- FilePath will validate if the folder path is correct (i.e. if C:\Folder exists).
- InputFilePath will validate if the entire file path is correct (i.e. if C:\Folder\File.xml exists).
|
Example Script
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<YtriaAutomation Version="1.0" Application="databaseEZ" ApplicationVersion="16.5" Console="true">
<Load Server="Acme01/ACME" partial="true">
<Load Database="AutoTest\lm_us_8.nsf" Select="True"/>
<Load Database="AutoTest\lm_nab_8.nsf" Select="True"/>
<Load Database="AutoTest\info_s03.nsf" Select="True"/>
<Load Database="storebackup.ntf" Select="True"/>
</Load>
<Execute InputFilePath = "C:\dev\Temp_XML\databaseEZ_secondaryscript.xml"/>
<GridDataComposition FilePath = "C:\dev\Temp_XML\databaseEZ-grid1.xml"/>
</ytriaAutomation>
In the script above, the databases indicated in the Load block will be loaded into the main grid of databaseEZ, and the file "databaseEZ_secondaryscript.xml" will be executed as if the entire contents of the secondary script were included in the Execute line's position. A pre-saved grid configuration file "databaseEZ_grid1.xml" will then be applied to the main grid.
|