Sample to understand basic local communications in Workflow

I've been teaching a lot of folks workflow as part of the Longhorn Server Ascend training and the simple example that I was using just didn't cut it.  So, I put together a set of example applications to show how the basic local communications work.  The main thing I wanted to show was how the use of an interface as the contract between your workflow and your host, allows you to swap out different hosts and provide different implementations of the local service, without the workflow having to know or care about any of this.  The workflow simply looks for a service that implements the right interface, and then calls into that class based on the interface. 
 
So, I created three different implementations of a VERY basic coffee machine: console, WinForm and ASP.NET.  The sample shows how you can simply add the right type of service implementation for your host and the workflow can be used in a number of environments.  The code is pretty well commented so you should be able to follow along. 
 
This works on WF 2.0 (Feb CTP).  Everything except the ASP.NET application will work on the 2.2 release as well.  I'll provide an update here when I get the ASP.NET example ported over to 2.2 later this week. 
 
Any feedback or questions are welcome.  Enjoy. 
 
The 2.0 compatible code is here.
I've uploaded the 2.2 compatible code here.
 

Posted Apr 03 2006, 01:31 AM by matt-milner

Comments

Christian Weyer wrote re: Sample to understand basic local communications in Workflow
on 04-03-2006 10:17 AM
Looks like the web app is missing in the ZIP?
Matt Milner wrote re: Sample to understand basic local communications in Workflow
on 04-03-2006 11:02 AM
Thanks for catching this Christian. I've updated the zip with the web project. You may need to update the solution file to point to the correct file location for the web site after opening.
Howard wrote re: Sample to understand basic local communications in Workflow
on 04-04-2006 12:23 PM
The first cross-platform example I've found (at last) after having struggled to get ASP.NET to live with workflow..

If only I could get mine working...!
Aby wrote re: Sample to understand basic local communications in Workflow
on 09-22-2006 11:48 PM
Sample to understand basic local communications in Workflow

Add a Comment

(required)  
(optional)
(required)  
Remember Me?