The way to "connect" the steps in a WindowsWorkflow and to pass data between the input of one activity and the output of another is binding.
The Activity bind allows the 'sharing’ of the properties between activities, so that any modification in EITHER property is reflected in the other one.
The ActivityBind has two parameters:
1.The name of the activity instance to get the data from
2.The name of the activity property where the data is found (Note that the property can be an array or a more complex data type.)
For example:
<!—The Upload activity gets one or more files, and makes the files
available it its ‘Data’ property. -->
<Upload
x:Name="form">
<!—The DataReplicator activity gets the data from the ‘Data’ property of
the Upload activity. -->
<DataReplicator
x:Name="Replicator"
Data='{wf:ActivityBind form, Path=Data}'>
<!— The Norton activity gets the file from the DataOut property of
the DataReplicator activity-->
<Norton
x:Name="antivirus"
Data="{wf:ActivityBind Replicator, Path=DataOut}">
<!—Parse activity gets file from the DataOut property of
the DataReplicator activity -->
<Parse
x:Name="ParseData"
Data="{wf:ActivityBind Replicator, Path=DataOut}">