Share via


How to create a Workflow Service using a Flowchart

The WCF Workflow Service template in Visual Studio 2010 creates a Workflow Service using a Sequence as the container.

image

You might not be aware that you can create a Workflow Service using a Flowchart.  To create it do the following

  1. Create a Workflow Service

  2. Delete the Sequential Service

  3. Drop a Flowchart

  4. Drop a Receive Activity

  5. Draw a connector from the Start shape to the receive activity

  6. Right click on the receive activity and select Create Reply.

    image

  7. Draw a line from the receive to the send reply.  Of course you can insert other activities in between the two as well.

Flowchart

To make it simple I created an Item template named the WCF Flowchart Service in the Visual Studio Gallery for creating this type of service in your project.  You can access it directly from Visual Studio 2010 by looking in the online templates.

image