Passing variables between tasks
This topic shows how to pass variables between tasks.
In many scenarios, the task output or a task property of a task in a workflow can be the input for the execution of a successive task in the same workflow or in a different workflow.
In the following scenario, you have TaskA and TaskB in the
same workflow instance and
TaskA is a predecessor of TaskB. TaskA
passes some properties to TaskB at execution time.
You can pass the following properties from
TaskA to TaskB:TaskAexports some properties andTaskBreferences these properties in its definition as variables in a predefined format. At execution time, variables inTaskBare automatically resolved. The task properties that you can export depend on the task type you are defining. See Passing properties from one task integration to another task in the same workflow instance.- Only for executable task.
TaskAsets some custom property values by using the jobprop utility on HCL Workload Automation dynamic agent.TaskBreferences these properties as variables in its definition. At execution time, variables inTaskBare automatically resolved. See Passing variables set by using jobprop in one task to another in the same workflow instance.