Passing data between two activities in sequential workflow

Hi,

Is it possible that an activity (such as Code activity) in a sequence worflow passes data to next activity before it starts executing?

What i want is..., Activity A processes some data in its execute code event,and then before Activity B starts, it passes the data to it so Activity B would now work on the data.

Do you think I would need custom activity for this? Any code snippet or sample would be appriciated.

Thanks,

Hiten

[476 byte] By [Hiten] at [2007-12-21]
# 1

a data member at the workflow level.


Serge Luca; Guidance, Belgium ; blog : www.redwood.be

SergeLuca at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2

Take a look at dependency properties in the documentation and samples. A dependency property defined on Activity A can be bound to by a dependency property of the same type on Activity B. This way, Activity B can start working and will just access its property to get the value it needs.

There is a snippet included with the vs extensions to help you insert a dependency property in your code and the send mail sample in the sdk uses several of them.

Matt

MattMilner-Pluralsight at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified