Passing properties from one task to another task in the same workflow instance

This topic shows how to pass properties from one task to another task in the same workflow instance.

You can export task properties from one task to reuse them as variables in a successive task in the same workflow instance. The variables are resolved locally on the agent at run time. To add a task property within a successor task, use the following syntax:
${jobs.<job_name>.<property_name>}
where
<job_name>
is the name value or alias name value of the task from which you are exporting the property values
<property_name>
is the property that you are referring to. The <property_name> value is case insensitive.

You can also export output properties from one workflow to another workflow. For more information, see Output properties and data transfer between workflows.

The following example shows the properties of file transfer tasks that can pass to other successor tasks:
Example
The table for Properties for file transfer tasks shows the list of properties that you can pass from one file transfer task to another and indicates the mapping between the Extra information properties of the task and the properties that you can use.

Since you can use wildcards to specify a partial name condition, you can transfer more than one file within the same task, and you have one full set of properties for each transferred file.

Table 1. Properties for file transfer tasks
For the file number counter, the properties that can be passed in another job definition (a set of properties for each transferred file) For the file number counter, the job Extra Information properties (a set of properties for each transferred file)
${jobs.<job_name>.File.counter.LocalFile}
File.counter.LocalFile
${jobs.<job_name>.File.counter.LocalUser}
File.counter.LocalUser
${jobs.<job_name>.File.counter.Protocol}
File.counter.Protocol
${jobs.<job_name>.File.counter.RemoteFile}
File.counter.RemoteFile
${jobs.<job_name>.File.counter.RemoteUser}
File.counter.RemoteUser
${jobs.<job_name>.File.counter.Size}
File.counter.Size
${jobs.<job_name>.File.counter.
    TotalTransferTime}
File.counter.TotalTransferTime
${jobs.<job_name>.NumberOfTransferredFiles}
Number of transferred files

Only one value for each task.