基于轻量级J2EE的工作流引擎的研究与设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
工作流管理系统是实现计算机辅助协同工作的工具,能够实现工作流程的全部或者部分自动管理功能。它不仅便于工作的规范化,而且便于人员与资源的合理配置、工作流流程的监督与审查并提高工作效率。工作流引擎作为工作流管理系统的核心,是实现工作流管理系统的基础,吸引了来自研究机构与产业界广泛地关注。
     本文首先介绍了工作流技术的发展与研究现状以及一些相关背景,然后介绍工作流管理联盟所提出的工作流管理系统的概念和体系结构以及工作流的参考模型,接着介绍了实现工作流引擎的J2EE相关技术,包括较为流行的Spring框架、Hibernate框架和在开发过程中经常用到的几种设计模式。
     本文从分析工作流引擎的设计目标和主要实现的功能出发,叙述了工作流过程定义的元模型,过程与活动的状态转换和工作流运转模型以及本文所用到的过程定义语言,然后提出一种基于轻量级J2EE框架的工作流引擎的体系结构,采用开源框架Spring+Hibernate作为引擎的架构,设计与实现工作流引擎中各个功能,并给出了引擎关键技术的实现,最后用本文所设计的工作流引擎实现一个工作流管理系统的原型。
Workflow management system is a tool to realize computer support collaboration work, and can realize the management of workflow entirely or partially automatically. It not only benefits to the standardization of work, but also is convenient for reasonable disposition of personnel and resource, the supervision, examination of workflow to improve working efficiency. Workflow engine is the core of workflow management system and the key to realize a workflow management system. It has drawn on extensive attention by the research institutions and industry fields.
     This article firstly introduces the development of the workflow technology, the research present situation as well as some relevant background, then introduces the concept and the architecture of the workflow management system, which workflow management coalition puts forward, besides introduces the workflow reference model. Secondly, it introduces J2EE relevant technology which can realize the workflow engine, including more popular spring framework, hibernate framework and many design patterns which are often used in the project.
     This article analyses the design goals and main functions of the workflow engine, describes the basic process definition meta-model, the conversion of process and activity and the running model of workflow. Afterwards, it brings forward a architecture of the workflow engine based on lightweight J2EE framework, and use the spring and hibernate framework as the structure of the engine, designs the functions of workflow engine and realizes them. In the same time, it puts forward the realization of the key technology. Finally, a simple workflow management system is realized by the engine.
引文
[1] 范玉顺等.工作流管理技术基础[M], 北京:清华大学出版社, 2001.
    [2] Workflow Management Coalition (WfMC), Workflow Management Coalition Terminology &Glossary, Technical Report, 1996.
    [3] Workflow Management Coalition (WfMC), The Workflow Reference Model, Document no WFMC-TC-1003, 1996.
    [4] ChenfeiLiu, MariaE Orlowska and HuiLi, Automating Handover in Dynamic Workflow Environments, Proceedings of the 10th International Conference on Advanced Information Systems Engineering 1998, 1998 (6): 8-12.
    [5] KRADOLFERM, GEPPERTA, Dynamic workflow schema evolution based on workflow type versioning and workflow migration, Proceedings of 4th IFCIS International Conference on Cooperative Information Systems, 1999: 104-111.
    [6] CASATIF, CERIS, PERNICIB, POZZIG, Workflow evolution, Proceeding of the 15th International Conference on Conceptual Modeling, 1996: 438-455.
    [7] REICHRT M, DADAM P, ADEPT flex-supporting dynamic changes of workflow without loosing control, Journal of Intelligent Information Systems,1998 (2): 93-129.
    [8] Workflow Process Definition Interface ——XML Process Definition Language WFMC -T000-1025, 2001.
    [9] Sun Micro system Inc.Java2 Enterprise Edition (J2EE).2003.10.http://java.sun.com.
    [10] Workflow Management Coalition. Workflow Client Application (Interface 2) Application Programming Interface (WAPI) Specification Wfmc-TC-1009, 1997.
    [11] Wayne H. Wolf. Hardware-Software Co-Design of Embedded Systems [J]. Proceedings of IEEE, 1994, 82(7):967-989.
    [12] Workflow Management Coalition. The Workflow Standard-Interoperability Abstract Specification. Wfmc-TC-1012,1996.
    [13] Workflow Management Coalition. Audit Data Specification. Wfmc-TC-1015, 1998.
    [14] Bobby Woolf. An Introduction to Workflow and Workflow Management Systems. 2005.6.
    [15] Carol Prior. Workflow and Process Management. Maestro BPE Pty Limited Co., Australia.
    [16] Rob Allen. Workflow: An Introduction. Open Image Systems Inc.
    [17] 孙卫琴. 精通 Hibernate:Java 对象持久化技术详解[M]. 电子工业出版社, 2005.
    [18] 范玉顺, 吴澄. 工作流管理技术研究与产品现状及发展趋势. 计算机集成制造系统CIMS, VOL6, NO.1, Jan, 2000.
    [19] 李长树. 办公自动化系统的设计方法与实施策略[J].《计算机应用研究》, 2000 年 7月.
    [20] 赵文, 胡文蕙, 张世馄, 王立福. 工作流元模型的研究与应用[J]. 软件学报, 2003 年 6月.
    [21] 范玉顺. 企业信息化整体解决方案的内涵和实施途径[J]. 计算机集成制造系统, 2004年 1 月.
    [22] 胡华. 基于 WEB 的企业工作流程管理控制系统[J].《计算机工程》, 2001 年 6 月.
    [23] 孙瑞志, 史美林. 工作流系统在电子商务中的应用[J].《小型微型计算机系统》, 2002年 6 月.
    [24] 邵雷, 李毓伟. 基于工作流技术和 B/S 结构的办公自动化系统研究[J]. 浙江科技学院院报, 2003 年第 15 卷第 2 期.
    [25] 黄钧, 范永全, 郭勇. 工作流管理系统在建设项目管理中的应用[J]《.微型机与应用》, 2002 年 9 月.
    [26] 董章震, 潘捷, 邓家提. 工作流模型的研究与实现[J].《计算机辅助工程》, 2002 年 2月.
    [27] 邓水光, 俞镇, 吴朝晖, 动态工作流建模方法的研究与设计[J]. 计算机集成制造系统——CIMS, 2004 (6):601-608.
    [28] 何清法, 李国杰, 焦丽梅, 刘力力. 基于关系结构的轻量级工作流引擎[J]. 计算机研究与发展, 2001 (2):129-137.
    [29] 路春光, 孟丽丽, 郝立文, 马琅. 基于 WEB 的柔性工作流引擎的设计[J]. 微计算机信息, 2006 (15):21-24.
    [30] Will van der Aalst&Kees van Hee, 王建民, 闻立杰等译. 工作流管理——模型方法和系统[M], 第八版. 北京:清华大学出版社, 2004.
    [31] 王凯、白庆华. 面向对象工作流管理系统模型设计[M], 1999.
    [32] Smith T. The future of workflow software. INFORM[C], 1993, 50-51.
    [33] 刘鹏、李启炎. 工作流管理的安全研究[J]. 计算机应用研究, 2000 年 11 月.
    [34] Wilvantier Aalst, Keesvan Hee Workflow Management (Models Methods and Systems) London 2002.
    [35] 任志宏, 李京, 金蓓弘. 基于 Internate 工作流的复合 Web 服务框架[J]. 计算机研究与发展, 2003 年 7 月.
    [36] 史美林, 杨光信, 向勇等. WFMS:工作流管理系统[J]. 计算机学报, 1999(3):326-328.
    [37] 汪涛, 吴耿锋, 黄力芹. 工作流管理的现状和未来趋势, 2001.
    [38] 任少军, 黄光球, 袁庆喜, 张新生. 一种基于 J2EE 技术的工作流管理系统的实现[J]. 信息技术, 2004.
    [39] 谢玉风, 杨光信, 史美林. 基于条件化有向图的工作流过程优化[J]. 计算机学报, 2001.
    [40] 罗海滨, 范玉顺, 吴澄. 工作流技术综述[J]. 软件学报, 2000 年 11 月.
    [41] 王文军, 仲萃豪. 分布式工作流系统 FlowAgent 的动态任务调度[J]. 软件学报, 1999年 12 月, 10(3):12-15.
    [42] 金洁洁, 吴海峰, 尹建伟. 基于 Web Service 的工作流过程模型研究[J]. 计算机研究与发展, 2003, 5(6):47-48.
    [43] 刘婷, 林闯, 刘卫东. 基于时间 Petri 网的工作流系统模型的线性推理[J]. 电子学报, 2002, 30(2), 153-156.
    [44] 李锡, 韩桂英. 一种结构化的工作流过程建模方法[J]. 计算机工程, 2005, 31(8), 63-65.
    [45] 易开祥、胡敏、杨建、石教英. 基于 B/S 模式的信息系统研究与设计[J]. 计算机工程, 2000 年 8 月.
    [46] 王勇. 一种基于服务的跨组织工作流管理系统的研究与实现[J]. 计算机工程与应用, 2004, 29, 90-93.
    [47] 罗时飞编著. 精通 Spring[M]. 北京:电子工业出版社, 2005.
    [48] 孟劼编著. 精通 Spring—Java 轻量级架构开发实践[M]. 北京:人民邮电出版社,2006.
    [49] Craig Walls, Ryan Breidenbach 著, 李磊, 程立, 周悦虹译. Spring in Action 中文版[M]. 北京:人民邮电出版社, 2006.
    [50] 袁绪峰. 基于 Spring 框架的 AOP 编程[J]. 计算机与现代化, 2006, 125(1), 118-120.