
Microsoft Windows Workflow Foundation 4.0 Cookbook
By :

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.
The SQL workflow instance store needs to be already in use. We can refer the Configuring the SQL persistence store section of this chapter.
Create a workflow project:
Create a new Workflow Console Application under solution Chapter06
and name the project as LoadingUpWorkflowFromPersistenceDB
.
Create a workflow:
Open the Workflow1.xaml
file, which is created by default, and create a simple workflow with a Delay
activity.
Set the Duration
property of Delay
activity to 1 second. Once the Delay activity is executed, the workflow will become idle and the whole...
Change the font size
Change margin width
Change background colour