How do I pass data between activities in Windows Workflow?
-
03-07-2019 - |
Question
I'm not completely sure I understand the workflow way of doing things, but if it's a pipeline n filter style model I should be able to pass data (even strings) from one activity to another.
Does anyone know how to do this? Bonus points for a video!
I hope this is possible. If WF were the same as my idea of it then it would be extremely useful.
Solution
Method 1 (Design- and run-time): Activity databinding
You can bind the dependency properties of an activity to the properties of another activity. See
Method 2 (Run-time): Find an activity from the activity tree
See
- Paragraph "Workflow Development" of the article ActivityExecutionContext in Workflows.
- Binding to Activity Dependency Property in Code Activity
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow