Workflow entry step.2-building a simple WorkFlow-For-WF4.0

Source: Internet
Author: User
Opening

In the previous article, we briefly explained the introduction of WF, so there are already many experts in the yard, and I have written a lot of applications about workflow, recently, many problems and experiences have been found during the process of integrating the workflow platform. The workflow is not just as simple as approval, but the complexity is obviously not average, after learning the workflow, no matter how you understand and improve the business process, it is very helpful. Because the specific business processes of different enterprise applications are different, as a result, it is impossible to build a general business process model. Just like enterprise management, it is impossible to develop a general business process model. It must be in line with internal conditions of the enterprise.

Knowledge about workflowsArticleAnd there are already a lot of them. Many of the guys in the yard have already mentioned the concept of workflow. The younger brother did not dare to say that he knew the workflow very deeply.

Summary

Workflow is a popular technology recently. In fact, WF originated from the office automation field in the middle of 1970s. Since August 1993, WfMC (Workflow Management Alliance) was established, in 1994, a series of workflow standards were developed. More and more scholars are paying attention to the workflow in the 21st century, and the technology is becoming more and more mature. Of course, I must keep up with the times, so I also joined the workflow army, hoping to keep up with our predecessors. Of course, I also hope that interested friends can join the workflow discussion group. Specific Group Number:120661978.

At present, we have made a sequent in the agileeas platform. The content of the interface designer + workflow, of course, the workflow is not very mature yet, and it is not convenient to release it. This article is just a reference, but alsoI hope you will pay more attention to the content of workflows.

Outline

I. Opening

Ii. Summary

Iii. First Instance of wf4.0

Wf4.0 build a simple instance

Previous Article "Step 1-my frist workflow trip!" We talked about the basic introduction and knowledge of workflows. This time, we will go directly to wf4.0. We will not discuss the versions earlier than 3.5 in the subsequent sections, but we will not discuss them in 4.0, I will not repeat the updates and descriptions in section 4.0. You can refer to the following articles.

New features in Windows Workflow Foundation

Compared with the previous version, version 4.0 is a revolutionary change and cannot be seamlessly migrated from the previous version to version 4.0.

Next we will start to create a simple wf4.0 project. Let's start with Hello world! Start:

1. Create a console applicationProgram

2. After the creation is complete, the following interface is displayed, which is different from the previous page before 3.5:

3. Open the toolbox and we can see the default design activity group provided by the system:

4. Select the sequence control flow in the "control flow" group:

5. The workflow is dragged and dropped. The following activities are added to the "primitive" group:

6. If the duration is set to 15 seconds, set the duration as 00:00:15. Add another activity node "writeline" to output "Hello World !";

6. That's all. Let's take a look at the writing method in the "program" of the host. Let's take a look at the changes in version 4.0 compared to version 3.5 earlier.

7. Run the program to see the effect:

8. You may think, how do I know if I have waited for 15 seconds? Let's add the output information of the execution time before and after the node is executed:

9. Run it again to see the effect:

It looks very simple and easy to use. Once you find it, you will find that it is not difficult, but how to solve the actual problem.

Next announcement

This article describes the first program of "wf4.0". In the next article, we will refer to the learning path of the C # language and start to introduce the loop structure. First, we will master the control flow in wf4.0:

A lot of content in the control flow is the most commonly used content in our specific business process applications. Therefore, we should first sort out and describe the basic content.

More communication

Official blog: http://www.smarteas.net/

Http://www.agilelab.cn/

If you have any questions about using the agileeas. NET development platform, use the following contact methods or communication methods.

1. Telephone-Email:

He gozhou: hegezhou_hot@163.com mobile phone: 18691480181 blog: http://www.cnblogs.com/hegezhou_hot/

2. QQ chat group:

308961614 Network Name: h.o. t

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.