WF4.0 Combat (14): asp.net combined WF4.0 complete Example

Source: Internet
Author: User

Some netizens ask how to use WF in the web. Today I'm going to implement a complete example. This example will include most of the knowledge points of WF4.0. Including:

1. Persistent service

2, tracking Service

3, Custom Extension

4. WCF Workflow Service

5, WorkflowServiceHost

6. Use interop activities to invoke WF3.0 workflow

Effect:

Let me describe the function of this example first, then demonstrate the functionality of the example, and then further explain how to implement it.

This example is a task queue, which has two ASPX pages on the client. One is for the user to enter the request of the page, the request will be based on your choice of classification of the task into different task queues. The second page is used to process these requests. These different categories of queues have two ways of handling, not one queue corresponding to a processing method, one is well-known advanced first out of the way. Each time processing the first submission of the request, the program automatically moved out of the oldest task for you to deal with, the second is, you select this task queue, the program will show all the tasks of this queue, and then you select a task for processing.

There must be four task queues in this example: Product,service,marketing,general. These task queues are handled in such a way that you can set them yourself. When you submit a request, the program classifies the request into a different queue based on the category you selected on the first page. Processing on the second page. The second page is handled in three different ways:

First: Assign this task to another task queue

Second: Do not assign to another processing queue, direct processing, process end

Third: Cancel the processing and return the task from the task queue

When you are dealing with the first way. The task is planned into another queue. At this point, you need to move the task out of the other queue and then process it, which is handled in more than three ways. If you choose the second one, the process is complete.

This example is similar to the process of signing in a workflow. You can have unlimited endorsement.

The above is a simple description of the features of the example, I will take a screenshot of the way to show the example:

Login interface:

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.