WF4.0 Basic article (iii) Process example workflowapplication and Design WF Program Basic Principles

Source: Internet
Author: User
Tags rar

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.