views:

216

answers:

1

The situation: a workflow hosted in ASP.NET application using WorkflowServiceHost and contains durable delay. The workflow is currently inside the delay activity and was persisted into database.

Then the application pool, under which the ASP.NET application is running, goes to be recycled (e.g. by web.config change) and there are no more http requests to the ASP.NET application. And now is the time when delay activity should finish and next activity in the workflow should be executed.

Does it mean the next activity will not be executed until any request to the ASP.NET application because the app pool was recycled?

+1  A: 

The WorkflowServiceHost is responsible for loading workflows with an expired delay activity. So you have to make sure the WorkflowServiceHost is actually loaded into memory.

Using the AppFabric makes this a lot easier, configure the service to autostart and AppFabricWorkflowManagementService will make sure it is restarted.

Maurice
We have to support also Windows Server 2003 and if I understand it right AppFabric is for 2008 and higher. So I think I'll host our workflows in our custom Windows NT service process and expose them as WCF endpoits via WorkflowServiceHost. Thanks for answer, Maurice!
Petr Felzmann
+1 to take you to 5k Maurice :)
Binoj Antony
Thanks, and now for the 6000 :-)
Maurice