Workflow Management Endpoint Sample

Workflow Management Endpoint Sample

This topic applies to Windows Workflow Foundation 4 (WF4).

This sample demonstrates how the WorkflowHostingEndpoint can be used with WorkflowServiceHost to create workflow instances.. The sample demonstrates how to host a control endpoint and write clients that call the control endpoint to create and run the instance of a workflow. The workflow is not a service.

On the service side of the sample a workflow is hosted with WorkflowServiceHost and a WorkflowControlEndpoint is added so that clients can perform control operations (Suspend, Start, etc). A user-defined CreationEndpoint is also added to allow the workflow to be created. The service then uses these endpoints to start the workflow in a suspended state and then resume the workflow. The client performs the same operations but from the client code. For more information about these interfaces see, Workflow Control Endpoint and How to: Host a non-service workflow in IIS

To run the sample

  1. Run Visual Studio 2010 with administrator privileges.

  2. Open the ManagementEndpoint.sln solution in Visual Studio 2010.

  3. To build the solution, press CTRL+SHIFT+B or select Build Solution from the Build menu.

  4. Start the ManagementEndpoint.exe application.

  5. Start the Client.exe application.

Dd807500.Important(en-us,VS.100).gif Note:
The samples may already be installed on your computer. Check for the following (default) directory before continuing.


If this directory does not exist, go to Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4 to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.


Community Additions

© 2016 Microsoft