Workflow Foundation 4 WorkflowServiceHost Message Correlation
Posted
by Lygpt
on Stack Overflow
See other posts from Stack Overflow
or by Lygpt
Published on 2010-04-01T16:20:35Z
Indexed on
2010/04/01
16:23 UTC
Read the original article
Hit count: 632
workflow-foundation-4
|workflow-foundation
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!
© Stack Overflow or respective owner