Using Variables

Variables are used to pass information between objects. For example, SQL script has failed and you would like to email the SQL to the developer. Insert <sql> Into email message and it will be replaced with actual SQL

Before any object executed the variable is replaced with the actual value

“Before any object is executed the variable is replaced with the actual value”, this statement is extremely important.

When execution starts variable <Email> does not exist

When the “select '<Email>' as Email” executed the first time everything works as expected, email is sent ETC.

However, when it is executed the second time '<Email>' is replaced with an actual variable value. (remember “before any object executed the variables are replaced with the actual value”)

so instead of “select '<Email>' as Email”

“select 'VariableValue' as Email” is executed

The solution to this problem is very simple. Put another set variable after “Send an email action” and set <Email> to <Email>

There are several ways to create variables

  1. Using script action
  2. Using transformation action
  3. Using calculation object within transformation action
  4. Using Set Variable Action
  5. Using Global Variables


<Project Name>
<Project ID>
<Package Name>
<Package ID>
<Package Item Log Name> <Current Package Item Name>
<Actual Execution Status>
<Execution Status>

<Main Package Log Name>
<Package Item Log Name>
<Rejected Records File Name>




<Repository Connection String>


Every Action has a predefined set of variables

Once action execution is completed values are assigned to enabled variables

  • aetle/packages/variables.txt
  • Last modified: 07/07/2021 10:53
  • by admin