Search code examples
workflow-foundation

WF result OR property from one activity as input to next activity in designer


I'm using the designer to string together some CodeActivity based activities. Using the property window where you can enter VB expressions, I'm not sure how to reference the previous activity.

There are two things I'd like.

  1. Get the result of the previous activity and pass it to an in Argument property in the designer.

  2. Possibly read an InArgument of the previous activity. So if I set an in argument to the name of a file, I'd like to be able to read the filename. I can change them to inout parameters if that helps.


Solution

  • You can create a class derived from CodeActivity<string>