Tutorial - Using Variables in a Simple Task
Introduction
Note
You need an Email Connection to perform this exercise.
In the Launching an Email Task Based on a File Monitor tutorial, a built-in variable called ${ops_trigger_name
} and a system variable called ${_date
} were included to pass information into an Email message. Those variables were resolved using system information when the email task instance was created.
In this exercise, we will create a new user-defined variable, use it in a task, and run the task both manually and via a trigger to illustrate how such variables are resolved.
Resolving Variable Using Value from Global Variable Table
Step 1 |
Create a Variable with the following values:
|
---|---|
Step 2 |
Click the Save button. |
Step 3 |
Create an Email task with the following values:
|
Step 4 |
Click the Save button, re-open the task, and click the Launch Task button. |
Step 5 |
You should receive an email with Global in the body of the email. |
Resolving Variable Using Value from Task
Step 1 |
Open the Email Tutorial task and click the Variables tab. |
---|---|
Step 2 |
Click the New button to display Variable Details for a new Variable and enter the following values:
|
Step 3 |
Click the Save button. |
Step 4 |
In the Email Tutorial Details, click the Update button and then click the Launch Task button. |
Step 5 |
You should receive an email with Task in the body of the email. |
Resolving Variable Using Value from Trigger
Step 1 |
Create a Time trigger with the following values:
|
---|---|
Step 2 |
Click the Save button. |
Step 3 |
Re-open the Variable Demo trigger and click the Variables tab. |
Step 4 |
Click the New button to display Variable Details for a new Variable and enter the following values:
|
Step 5 |
Click the Save button. |
Step 6 |
In the trigger Details, click the Update button and then the Enable button. |
Step 7 |
You should receive an email with Trigger in the body of the email. |
For additional information, see: