Workflow database table Design-asp.net

Source: Internet
Author: User

The company is ready to develop a workflow engine, there was no OA development experience, but also the first design workflow engine, I will share some of my ideas, hoping to get some help or help some people.

Positioning of the product:

1, can do the front and rear end separation

2, can achieve the separation of the use of the project, through the interface to achieve

3. Support complex process logic for example: Fill in overtime form-"multi-person audit =" return = "Fill in the certificate =" Designated person audit = "Through

Or

Wait a minute.

Design ideas

First, through the decomposition of the approval process can get three actions, and then the three actions to a more detailed analysis of the results are as follows:

1. Write a form

form table: For example overtime bill

Form elements table: input boxes and drop-down boxes that need to be filled out in overtime orders

Form Storage table: Overtime single click submit Stored Value

Form Event table: such as document verification, submission of events, etc.

2. Select Auditor

Audit Table: Store audit information for the previous action

Audit User table: Required approver

Audit Organization Structure table: The organizational structure needed to query

3. Condition determination

Decision table: The results of the process are judged by the complex workflow, for example, the number of days to leave is more than n days for XXX actions

Starting with "form", you can either "decide" or "audit" or continue filling out the form so that it becomes a workflow

Second, the Action universal table, considering the good user experience added attachment, reply and @ function

Main stickers: can be replied to

From the sticker: You can keep abreast the reply

Attachment table: You can add multiple attachments to an action

Third, the Action history table

Action record: In a special case will be used, that is, your operation is withdrawn back to the previous action, this time you need a history to view.

Workflow database table Design-asp.net

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.