set workflow variables RRS feed

  • Question

  • Is there any way to retrieve and set workflow variables from a custom activity without using InArgument and OutArgument?
    Friday, June 19, 2009 8:01 AM


  • Hi James,
    I haven't tried this yet but it would seem to me if your custom activity is in a parent activity that has variables defined the child activity would have those variables in scope as well so you could reference them directly. It wouldn't be the best programming practice since you are hard coding variables that are scoped at the parent level but it seems like it should work. However, I would recommend using Arguments instead since that's a much safer coding practice.

    Friday, June 19, 2009 8:48 PM