You can do this with WF4. I never used Objectflow, so I canβt comment on it, but it seems to be a solution for working with memory and with an ASP.NET website hosted in IIS, which means that you will sometimes play as IIS and AppDomain transitions. This is usually not a big problem, as it does not happen often, but the WF4 InstanceStore will take care of this. It also allows you to run a web farm without sticky sessions and transfer workflow from machine to machine.
Another nice thing is the workflow designer. Its a WPF control that you can create in your application. Not in an ASP.NET or Silverlight application, but you can provide the smart client so that users update the workflow definition using a robust designer like you use in VS2010.
The biggest problem with WF4 is the asynchronous nature of the execution. You will need to use the SynchronizationContext to complete the actions and wait for the workflow to start working in a new state before you return the received HTML to the browser.
Maurice
source share