wcfworkflow-foundationworkflow-foundation-4state-machinewcf-4

How to host WF4 state machine as a WCF service


I'm new to WF4. What I want to do is to expose WF4 state machine as a WCF service.I have created the state machine. How can I execute the transition triggers and change the status using WCF. http://channel9.msdn.com/Shows/Workflow-TV/endpointtv-WF4-State-Machine-Hands-On-Lab-Exercise-2 . This is the tutorial I have used to create the state machine.


Solution

  • I wrote a sample that shows how to do this at State Machine Security Door. Basically you just use Send/ReceiveReply pairs in the transitions.