Task Variables

Task variables are visible to all functions within a task. They provide a means of sharing common data between more than one function. Task variables are similar to function parameters in that they are composed of a name, type, and accessibility descriptor. The types supported by task variables are (and must remain) identical to those supported by a task function. Task variables also support optional descriptions. However, unlike function parameters, a task variable cannot be marked as optional. Advantages of Task Variables are:

NOTE: Task variables are different from local variables which are created using the Create Variable action.

Creating and Managing Task Variables

Task variables are created and presented in a separate panel located on the Steps pane.

To create a new Task Variable:

  1. In the Steps pane, click the icon to open the Task Functions/Variables table.

  2. This expands the panel where you can set specific parameters.

  3. Click Add. The Task Variable dialog box appears.

  4. Specify the variable name, variable type, access type value, and optional description, then click OK.

  5. Click the new variable icon to collapse the panel.

To edit an existing Task Variable:

  1. In the Steps pane, open the Task Functions/Variables table.

  2. Select the variable you want to edit and click Edit.

  3. Make the desired modifications then click OK when finished. Reflected changed appear in the main panel.

To delete an existing Task Variable:

  1. In the Steps pane, open the Task Functions/Variables table.

  2. Select the variable you want to delete and click Remove.

The following table describes the parameters available during task variable creation/modification.

Property

Type

Description

Variable Name

Text

The name of the task variable to create.

Variable Type

Text (options)

The type of task variable to create. The available options are:

  • Variable

  • Array

  • Dataset

Access Type

Text (options

The task variable's access type. The available options are:

  • Public - The variable is visible and accessible to external tasks.

  • Private - The variable is not visible or accessible to external tasks.

Value

Text

The value of the task variable.

Description

Text

An optional description of the task variable.

See Also

Variables

Datasets

Arrays

Expressions

Create Variable Action