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