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
Run Visual Studio 2010 with administrator privileges.
Open the ManagementEndpoint.sln solution in Visual Studio 2010.
To build the solution, press CTRL+SHIFT+B or select Build Solution from the Build menu.
Start the ManagementEndpoint.exe application.
Start the Client.exe application.
Note: |
---|
The samples may already be installed on your computer. Check for the following (default) directory before continuing.
<InstallDrive>:\WF_WCF_Samples
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.
<InstallDrive>:\WF_WCF_Samples\WF\Basic\Execution\ManagementEndpoint
|