views:

78

answers:

2

i am developing an web application using window workflow foundation. I will send an email to others by using this application. In that for every recipient an workflow instance will be created.

The recipient can login my web application using the link provided in that email. When the login in my application I should change the workflow state for that recipient.

How can I do that?

Thanks, S.Dhanraj.

A: 

First of all you will need to implement persistence for your workflow. Because there may be lot of time between sending email and user actually logging in again.

After sending email the workflow will be idle and will be persisted by runtime services. When user logs in you need to pullout right workflow from persistence store (you may store id against their login or some other mechanism that suites you to associate user with workflow instance). Then call the workflow events and change its state as you wish!

Here is link to Bayer White's post about workflow persistence (with sample), this one is at devx.com

TheVillageIdiot
A: 

Thanks for your reply

I persisted my workflow. i have localservice class which is used for workflow service class. When user login i get workflow instanceid from database at that time localservice object is null. Then

how can i call the workflow events?

Thanks, S.Dhanraj.

Dhanraj