Workflow foundation 4.0 message correlation and error reporting
Posted
by Lygpt
on Stack Overflow
See other posts from Stack Overflow
or by Lygpt
Published on 2010-04-07T12:33:52Z
Indexed on
2010/04/09
8:03 UTC
Read the original article
Hit count: 400
workflow-foundation-4
|workflow-foundation
I have a workflow service that runs and performs a number of different operations (such as web service calls).
If one of these operations fails I call an error reporting web service to notify a seperate system that one of my workflow operations has failed. As the error could be something like the web service being down, I loop and retry this operation until it works.
There can be times though when the data I'm passing to this web service is faulty and it needs changing. So I need to be able to hook into this running (but delayed) workflow and change local workflow variables and then re-run the operation.
I've looked at message correlation in workflow 4.0 to achieve this but because the delay activity is active in my running workflow instance, any second service call doesn't do anything (it's like the delay activity is blocking any other requests).
I've tried setting 'CanCreateInstance' to both true and false but it doesn't help.
Thanks!
© Stack Overflow or respective owner