I am trying to do a singleton pattern with WF and AppFabric. I want just one instance of a workflow running in the cluster.
I have tried a biztalk style: a method (CallService()) that creates the instance, and the same method in other receive activity (CallService()) that do not have the cancreateinstance checked. (I think I could correlate it through the xpath to the action
in the soap message, but lets forget about correlating at this step).
My problem is that WF always creates the instance and does not correlate in the second call.
Do you know how to solve it? I would like to priorize the correlation against the creation of the instances. Any other way to do it?
Thanks in advance.
View Complete Post