Getting Started with ". NET" WF

Source: Internet
Author: User

Brief introduction

The full name of WF is the Windows Workflow Foundation, which is Microsoft in. A set of workflow development frameworks introduced after NET3.0. WF is one of the three frameworks (WPF and WCF and WF) that Microsoft has launched on. NET3.0, whose main purpose is to embed workflow applications for existing. NET applications, and the latest. NET4.5 version is the perfect integration of WF functionality. WF is not a standalone workflow application, it provides some class libraries for the development of helper workflow applications, and provides some mechanisms for implementing workflow applications, such as persistence, compensation, tracking mechanisms, and so on.

Use

WF is used to simplify and enhance the development of. NET applications WF is the best choice if your application needs to involve workflows. WF is not a standalone application development environment, it provides a set of frameworks for assisting with workflow development. WF will be hosted in a standalone application, such as a Windows Form application, ASP. NET application, or Web service.

First WF program Helloword

Below we use VS2013 to implement a WF application that controls the result delay of 10 seconds display.

1. Create a workflow console application

2. Drag and drop a "Sequence" sequential control flow from the Toolbox:

3. Drag and drop a delay component in the sequence to delay the time and set the delay to 10s

4. Under Dealy, drag and drop an active node "WriteLine" to output Helloword

5. The basic control is dragged and dropped, but in order to reflect the time difference, we add another "WriteLine" to show the current time of the system before delay and after the output result.

6. Host code (. NET4.0 after the code is quite simple)

<span style= "Font-family:kaiti_gb2312;font-size:18px;color: #666666;" ><strong> class program    {        static void Main (string[] args)        {            Workflowinvoker.invoke (new Workflow1 ());        }    } </strong></span>


7. Output results


Previously exposed to the workflow in the project, but only to understand its ideas, the specific usage did not personally practice. This is also just an entry-level applet, especially simple. Have a deeper understanding of the hope that we can communicate at any time, shortcomings, please criticize correct.

The above is the introduction of WF content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!


  • Related Article

    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.