Examples: Inheriting Object Variables

The examples in this topic describe how variables are inherited from parents to children:

Example: Activating a File Transfer By a Schedule

A File Transfer is activated by a Schedule. The following object variables are involved:

Schedule:

File transfer:

The script of the File Transfer accesses the variables defined in the Schedule (&FILE#, &HOST# and &PATH#). Their values depend on what is selected in the Settings section on the Variables Page of the Schedule.

Example: Inheriting Values in Children and Grand Children

This example shows how values are inherited in a child Workflow and beyond.

A Workflow called PARENTWF01 includes two objects: FILETRANSFER01 and WORKFLOW01. WORKFLOW01 includes two Jobs.

Value inheritance between the main Workflow and the File Transfer is as explained in example 1.

Graphic explaining how variables are inherited.

Depending on which option you select in WORKFLOW01, the two Jobs are affected in the following different ways:

Example: A Combination of Inheritance Features

The following example includes the various combinations and special features of the inheritance of object and PromptSet variables. 

Five tasks run in a workflow (tasks 1, 2, 3, 4 and 6) and are executed one after the other. Task 5 is activated by using the script of task 4.

The workflow includes the object variables &VAR1#, &VAR2# and the PromptSet variables &TEXT1#, &COMBO1#.

Variables page

See also: