| 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.By analyzing workflow standards issued by WfMC, corresponding design and implementation for distributed common workflow engine are presented. This article also talks about the implementation of process execution according to workflow process models standardized by xpdl.dtd, it also shows the design and implementation of activity scheduler optimized by thread pool technology, the resource manager for allocation and recycling about human based on roles, the design and the implementation of the communication interface which is needed when executing workflow processes in distribute environment.Considering the different development and running environment of business system, the Wf02 system is based on J2EE and implements two type of interface for business system, one is Java, and the other is Web Service. The Wf02 can run fluently on different OS and can corporate easily with different business system, and it has been used in two big business systems, one is based on J2EE, and the other is based on .net. Nowadays, the Wf02 and the two business systems corporate with each other very well, from the evidence, the Wf02 hits the target of its design. |