Business workflow platform design (4)

Source: Internet
Author: User
Custom activity (1)

I think this section is the most important thing. This is a very important part of the business workflow platform.;Is also an important part of the template. We will talk about custom activities in the following aspects:

L Minimize occupancy time

L Data Exchange

L Lock Processing

L Maintain state consistency and integrity

L Stop an activity

The following are specific designs for custom audit activities

L Functional Logic Design

L Rollback and resubmit

L Cross-review implementation

Minimize occupancy time

in WWF technical details and Application Experience (1) I have talked about persistence. Although this section does not address technical issues, but it is related to the lock time. So I have to mention sqlworkflowpersistenceservice , its constructor has a parameter instanceownershipduration used to specify the time occupied. Too long occupation is harmful to timeliness processing. Therefore, we should minimize the value of instanceownershipduration .

In real life, each person's processing speed is different. Some processes are fast and some processes are slow.Some people may need to clean up water, go to the toilet or something during the processing ...... So we wantInstanceownershipdurationHow many values are suitable?It may be difficult for many people to choose.

At that time, I am here to mislead everyone! I thought so at the beginning. Is there any way to set it to a relatively small range (for example10 s. Here is a symptom. In a processing process, the computer has two aspects to do: one is to collect user input information, and the other is to submit data and perform corresponding automatic processing. For the first point, the time used is not accurately estimated, but for the second point, the time used is extremely limited (generally10 sEnough ). I think you may know what I'm talking about. That is, we are not responsible for collecting user information during workflow operation.

How can we achieve this? See the following section. To be continued

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.