I’m currently working on a project where we want to implement a WF4 state machine as a workflowservice. The fundamentals seem to make sense as we’ve used WF 3.5 in the past. However one issue we’ve come across is that we’d like to be able to create an instance of the workflow at any of states (or at least more than just one of them). Selecting the CanCreateInstance property on more than one Receive activity throws an exception.
I’ve played around with Maurice’s suggestions on correlation from his blog but haven’t been able to figure out how to apply that to a state machine.
We have a sample that might help you Windows Workflow Foundation (WF4) – Silverlight / State Machine Workflow Service