Inheriting Object and PromptSet Variables

As a developer and object designer, when you create an executable object, you define object variables on its Variables Page. They retrieve values either from the object properties (values in the object input fields) or from its runtime instance (the task). Object variables can be used throughout the object. You also determine whether the object can inherit the object variables from its parent when it runs in a Workflow or a Schedule. Inheriting object variables simplifies the maintenance process because it is not necessary to store or maintain the values in the individual objects.

Tasks inherit the object and PromptSet variables of their parents in the following cases:

Tasks do not inherit the object and PromptSet variables of their parents in the following cases:

Important! Inherited object variables always overwrite existing object variables in the child object. However, PromptSet variables are never overwritten.

Note: If you create an object variable with the :PSET script statement, it is automatically passed on to the parent object. If the parent object already includes an object or PromptSet variable with the same name, it is overwritten with the value coming from the child object. Subsequent parent tasks can then access this variable.

See also: