views:

172

answers:

1

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!

A: 

Not sure if this is the answer to you problems but it may just be. If you are using a workflow instance store and property promotion you have the option to change the properties in the instance store for next time the workflow is loaded.

Maurice
Thanks Maurice (it wasn't quite what I was after though) - I guess I should have just asked the question 'does anyone know of any good articles on message correlation in workflow 4?'. I'm failing to get to grips with it properly. I've read your problem solver article but it is a code only sample and doesn't deal with the 2 service calls using the same local workflow variables.
Lygpt
Doing a few more blog posts on message correlation is on my todo list. Sort of waiting for the RTM bits before I do that though but stay tuned.
Maurice