Workflow management technology is one of the latest technologies of computing in recent years. And it has already become a research focus of present IT field. At the same time, as the key technology of process management and process control in modern enterprise, workflow technology provides the whole framework including model analysis, model construction, model management and model running.Workflow engine, the most important part of workflow management system, is responsible for workflow processes execution according to workflow process models defined by modeling tools. And it also assigns right task to right people who has right roles to enable high work efficiency. It interprets the process description and controls the instantiation of processes and sequencing of activities, adding work items to the user work lists, invoking application tools as necessary, and providing supervision and management.According to the workflow reference model brought by Workflow Management Coalition, combining with the development trend of workflow management system, the paper researches the workflow management system framework based on J2EE. On the principle of easiness, adequacy, simpleness and flexibility, the paper presents a lightweight workflow engine on the basis of relation database. I describe how to design and implement a lightweight workflow engine. The paper analyzes the workflow model in detailed by dividing it into three components, namely organization model, information model and control model, and presents correlative expressing methods of organization model and information model. Developer can make use of this engine to develop a business system with workflow property.Starting from lightweight, it discards the defect of EJB untraditional J2EE taking cumbersome system, large overhead and hard transplant, instead using Struts + Spring + Hibernate technology, which makes the engine can cross database and platform, and can embed application system conveniently. Struts has been used to realize presentation layer, while Spring used to realize business services layer, Hibernate used to realize persistent layer, and plain old Java object used to realize domain model layer. Relational structure is used to define data handled by workflow engine, so these data can be exchanged with other data in the same system straight and efficiently managed by DBMS.Finally, the paper summarizes the research work, and points out the following study contents. |