State machine workflow web service example

Being able to have a StateMachineWorkflow hold state across multiple different web service calls can be very useful.  This example will show you how to get start.  The first step is to create your interface.  For this example I will be using the following:   public interface IOrderService {     string CreateOrder(string id);     string…

0

Examples of using Persistence and Tracking in ASP.NET

When you are working with ASP.NET you may have the need to persistence and / or tracking.  I have put together two examples, one with shared databases and the other with separate, and included the command scripts to create the databases for you.  There are VB and C# versions of each sample.   When you…

6

Using XAML activation in ASP.NET with a StateMachineWorkflow

If you want to use XAML activation in ASP.NET you will need to be using Windows Workflow Foundation Beta 2.2, that can be found here.  The reason for this is that although XAML activation works in most cases with Beta 2 it isn’t officially supported in that build because it was added as a feature…

3

Sample of StateMachineWorkflow receiving events fired in ASP.NET

If you are using a state machine workflow in ASP.NET you need to use the ManualSchedulerService.  After the workflow is started or an event is fired to it you need to make a call to RunWorkflow.  This allows the current thread to process the event, for more information take a look at Nate’s blog.  With…

1