Brief Introduction to the business platform using WF to implement drag-and-drop

Source: Internet
Author: User

After more than a year of contact with WF, we found that there were not many people who paid attention to WF learning, but many people studied and studied WPF and WCF. Most people think that WF is only used for approval.ArticleTalking about using WF to implementDragBusiness platform. I believe that WF will attract you deeply.

Good business platforms are easy to drag and drop. The underlying developers implement the Platform, and senior developers implement the business system by dragging. It is very troublesome to implement drag-and-drop by yourself. If Microsoft's WF is used for drag-and-drop, it will not be twice the result with half the effort. netProgramWhy are employees happy to use their own things in MS? Below I will discuss some common functions. I will use the C # and WF drag-and-drop methods to implement them for convenience of comparison:

1. Define variables:

2. Assignment

3. Judgment:Evaluate the large number

4. 1 + 2 + 3... + 100 =?

5. ado.net and SQL operations:Query the customer table and convert it to list:

C #:

Ado.net operations (omitted)

WF:

Connection string

Define SQL

Entire Process:

6. WCF Service:

C #:

Define ABCCode(There are a lot of code)

WF:

7. Set Operations:

C #: foreach

WF:

8. transactions:Omitted

9. Custom activities:Some code can be encapsulated into an activity and put on the work bar for drag and drop.

Of course there are many more ....

A major change from WF3 to wf4 is the removal of background code, which is completely a XAML implementation. In the above operations, I can assure you that you do not need to write a C # code, but are solely based on drag and drop.

After reading the above, many kids shoes may still not understand. If you have developed and used drag-and-drop development platforms, you should be familiar with them.

Some children's shoes also say that it is still troublesome to use WF? In fact, the above examples are all implemented using the built-in MS activity area. You can use the built-in activities based on your own business.CustomAnd encapsulate some activities. If you work with WPF, you can also make a dazzling appearance for the WF activity.

Some children's shoes will certainly raise performance questions. I just want to argue for myself: Use. NET developers are certainly not as technical as Ms developers. using their stuff is at least more reliable than writing their own stuff.

You can drag and drop the main idea of the business platform: Use the process designer to drag the program into the XAML, save the XAML to the database, and then if you want to execute a program, first retrieve it from the database and then execute it.

 

Summary:WF is not just an approval. Of course, this is just a discussion. Let's talk about it first. Welcome to discuss it!

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.