WF learning-console workflow application

Source: Internet
Author: User
Prerequisites:
. NET Framework 2.0
Vs. NET 2005
Windows Workflow Foundation beta 2_2 (en)

This instance runs the test in beta2.2 (en:
1. Create a new project and select the workflow console application project template under workflow.

After creating a project, you will see a sequentialworkflow-type process design interface.

The project contains a program. CS file and workflow1.cs file, which are the application file and process description file.
2. Drag a code activity from the toolbar to the Process

3. Double-click "codeactivity1" in the flowchart at the rear. Code Write the following code: Private   Void Codeactivityappsexecutecode ( Object Sender, eventargs E)
{
Console. writeline ("Hello Workflow");
}

4. RunProgramThe output "Hello Workflow" is displayed. It's easy.

For this example, refer 《Presenting windows Workflow Foundation"

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.