O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Loading a persisted workflow from the database

Developing long-running applications is one goal of WF4, and resuming a persisted workflow from the database is the key to long-running applications. In this task, we will create a Sequence workflow with a Delay activity. The workflow will be persisted when it is idle. We then press the Enter key and then the workflow will be resumed and will run until its end.

Getting ready

The SQL workflow instance store needs to be already in use. We can refer the Configuring the SQL persistence store section of this chapter.

How to do it...

  1. Create a workflow project:

    Create a new Workflow Console Application under solution Chapter06 and name the project as LoadingUpWorkflowFromPersistenceDB.

  2. Create a workflow:

    Open ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required