views:

278

answers:

1

I have 2 methods on a workflow service hosted in WorkflowServiceHost.

The first method is called and starts the regular workflow sequence - talking to other web services, database work etc but on some occassions will pause and persist to db (as-in the delay activity) and wait for some human action to take place before continuing.

I need my second method to be able to hook into this persisted workflow, change a local variable and then continuing processing.

I have looked at message based correlation in workflow but can only seem to find examples where some kind of infinite while loop keeps the workflow instance active so that the second service method call can arrive whilst it's still running.

Because my workflow instance will be delayed/persisted, the second service call doesn't seem to get anywhere (I can't have an infinite while loop keeping the workflow instance active).

I hope this makes sense - cheers!

A: 

Did you try and run into any problems here? And if so what is happening or what errors are you seeing?

The reason I ask is this should just work. The WorkflowServiceHost receives the message, loads the workflow from the prescience store if needed and resumes the bookmark in the workflow (a Receive activity used bookmarks under the covers).

Maurice
Although no exceptions are thrown, the second service call doesn't seem to do anything. I expected the local variable to change and then output to the console window but nothing happens at all. It seems as though because the first method call triggered a delay activity, nothing will get past this! Can I email you my demo app to your problem solver email address please Maurice? Cheers!
Lygpt