Through this section, you can understand the characteristics of WF program to provide a preliminary perceptual knowledge for future WF application development.
Two examples of this article
Http://files.cnblogs.com/foundation/LoadXamlSample.rar
Http://files.cnblogs.com/foundation/WorkflowApplicationSample.rar
The basic principle of workflowapplication and design WF program for process instance
Process Instance Workflowapplication
I'm in [starting to use WF4.0.] Example of a workflow that creates an output of the "Hello wxwinter" screen
In this example we started the process by using the following method
class Program
{
static void Main(string[] args)
{
WorkflowInvoker.Invoke(new Workflow1());
}
}
In practice, I don't use Workflowinvoker.invoke to create workflows (Workflowinvoker features I'll explain in more detail in future articles), and I'll use Workflowapplication to create workflow instances, Workflowapplication is used to track and manage individual workflow instances, first look at the structure of the workflowapplication:
Class name |
System.Activities.WorkflowApplication |
File |
System.Activities.dll |
Structure description |
Inheritance WorkflowInstance is a sealed class |
Function description |
Create an instance of a workflow by passing in the activity object from the constructor |