轻量级工作流系统的研究与实现

VIP免费
摘 要
随着信息技术的迅猛发展和市场竞争的日益激烈,企业信息管理迫切需要一
种能够支持实现业务流程自动化的技术,把传统的信息管理与业务流程管理结合
起来管理企业的各种流程。工作流技术正是顺应这一需求孕育而生。工作流技术使
得应用系统的流程逻辑与业务逻辑耦合度降低,提高了应用系统的开发效率和可
维护性,从而使得企业可以很好地进行业务流程改造与重组,以适应市场的变化
与需求。
本文参考工作流管理联盟(Workflow Management Coalition,简称WfMC)制
定的规范,根据中小型企业业务对工作流软件的需求情况和工作流产品现状,本
着简单实用的原则,设计开发了一种面向中小型企业的轻量级工作流系统。文章
首先给出了轻量级工作流系统的总体架构,通过与J2EE技术、关系数据库技术相
结合设计了系统的三层架构。在工作流模型设计中,通过分析研究几种典型现代
企业的组织结构类型,设计了具有柔性的矩阵制组织角色模型,并通过基于多种
方式的角色授权实现了任务的动态柔性分配。在研究了多种现有的过程模型的基
础上,结合了活动网络图和Petri网过程模型的特点提出了一种基于令牌有向图的
过程模型。该模型在支持工作流管理联盟提出的六种基本路由结构的同时,实现
了对于可选分支和投票聚合两种柔性路由结构的支持,从而提高了过程模型的柔
性。然后文章对系统的数据库设计,过程建模工具、工作流引擎、客户端应用以及
系统的管理与监控工具等模块的设计和实现作了深入的研究。系统采用表单建模
结合图形化显示的方式设计和实现了过程建模工具。工作流引擎采用基于令牌有
向图的调度算法作为其调度策略,并在此基础上详细介绍了工作流引擎的功能设
计,同时对工作流运行状态、引擎的过程调度、条件分析和实例处理等模块的设计
与实现作了详细阐述。客户端应用为系统的普通用户提供了过程模板查询、过程实
例处理、任务处理和已完成任务监控等功能。客户端应用接口为客户端应用和应用
系统的开发提供了一系列比较完备的APIs。系统的管理与监控工具包括过程模板
的管理、过程实例的管理、活动实例的管理和用户角色的管理等功能,并为管理员
提供了任务重新分配和过程跳转两种实例的动态处理方法。最后,将设计并实现
的轻量级工作流系统应用在企业采购管理业务中。应用结果表明,系统具有良好
的易用性和可扩展性,并能满足中小企业业务系统开发的需求。
关键词:轻量级 工作流 工作流系统 工作流引擎 关系数据库 J2EE
ABSTRACT
With the great development of information technology and increasingly fierce
market competition, information management in enterprises require the technology
which can make business processes automatic and combine traditional information
management with business processes management. Workflow technology is to solve
this problem. Workflow technology’s introduction lowers the coupling between process
logic and business logic of the application system, reduces complexity of the application
development process and raises the application system development efficiency and
maintainability, so that enterprise can make it better to reengineer their business process
and they can adapt to the changes and requirements of the market.
According to the Workflow Management Coalition standard, based on the actuality
about workflow management product in the software market and the demand for
workflow software of medium and small enterprise business and according to the
simple but practicality principle, this thesis designs and develops the lightweight
workflow system. Combined with J2EE technology and relation database technology,
the thesis first presents the design of lightweight workflow system’s three level
structures. Second, a flexible matrix organization model is proposed after analysied
several typical organizational structures of modern enterprises. And dynamic and
flexible task assign is captitable by many types of authorization. After studying a
variety of existing process models, a token-based directed diagram process model is
presented. The model combines the advantages of Perti-net process model and activity
network diagram process model. It supports not only six basic routing structures
suggested by WfMC, but also the Select-spilt and Select-join structures, so that it is
more flexible than other process models. Third, the article gives the design of the
database and the design and implementation of the four main modules such as process
define tool, workflow engine, client application and managment and monitor tool. A
combination of form modeling and graphical showing of the model is used to design
and develop the process define tool. The workflow engine uses token-based scheduling
algorithm as its scheduling strategy. And the article introduces the detail designs and
implementations of the workflow engine such as the workflow running states, process
scheduling module, condition analysising module and instance handling module. The
client application makes an ordinary user to querry process model, to deal with process
instances and tasks and to monitor finished tasks. And the interface of the client
application provides the application system and the client application with a series
comparatively completely APIs. The managment and monitor tool is desigened to
manage process models, process instances, activity instances, users and the
organizational structure of the enterprise. It also provides administor with methods such
as task reassign and process redirector to deal with the dynmic changes of workflow
instances. Finially, the lightweight workflow system which is designed and realized is
applied in the purchase management business. And the result shows that the workflow
system is easy-to-use and extendable, so that it is suitable to the needs of the application
development in medium and small enterprises.
Key Word: Lightweight, Workflow, Workflow System, Workflow
Engine, Relation Database, J2EE
目 录
中文摘要
ABSTRACT
第一章 绪 论...............................................................................................................1
§1.1 工作流的起源及发展.......................................................................................1
§1.2 国内外研究现状及不足...................................................................................2
§1.3 本文研究内容及意义.......................................................................................4
§1.4 论文的组织结构...............................................................................................5
第二章 工作流技术概述...............................................................................................6
§2.1 工作流的相关概念...........................................................................................6
§2.2 工作流管理系统概念.......................................................................................8
§2.2.1 工作流管理系统的功能........................................................................8
§2.2.2 工作流管理系统的体系结构................................................................9
§2.3 工作流参考模型.............................................................................................12
§2.3.1 工作流参考模型框架..........................................................................12
§2.3.2 工作流参考模型接口介绍..................................................................13
§2.4 工作流系统用例图.........................................................................................15
§2.5 本章小结.........................................................................................................15
第三章 轻量级工作流系统的总体设计........................................................................17
§3.1 系统的设计思想.............................................................................................17
§3.2 系统的总体架构设计.....................................................................................18
§3.3 工作流模型设计.............................................................................................20
§3.3.1 工作流模型的组成..............................................................................20
§3.3.2 组织角色模型......................................................................................21
§3.3.3 过程模型..............................................................................................24
§3.4 数据库设计.....................................................................................................31
§3.4.1 实体关系图..........................................................................................31
§3.4.2 数据库的物理结构设计......................................................................32
§3.5 本章小结.........................................................................................................40
第四章 轻量级工作流系统的详细设计与实现............................................................41
§4.1 过程建模工具.................................................................................................41
§4.1.1 过程建模工具的设计..........................................................................41
§4.1.2 过程建模类的实现..............................................................................43
§4.1.3 过程建模的界面实现..........................................................................46
§4.2 工作流引擎.....................................................................................................48
§4.2.1 工作流引擎的设计..............................................................................48
§4.2.2 工作流运行状态..................................................................................51
§4.2.3 过程调度..............................................................................................54
§4.2.4 条件分析..............................................................................................58
§4.2.5 实例处理..............................................................................................61
§4.3 客户端应用.....................................................................................................61
§4.3.1 客户端应用的设计..............................................................................62
§4.3.2 客户端应用接口..................................................................................64
§4.4 管理与监控工具.............................................................................................65
§4.4.1 管理与监控工具的设计......................................................................65
§4.4.2 过程模板及实例的管理与监控..........................................................66
§4.4.3 组织角色的管理..................................................................................67
§4.5 本章小结.........................................................................................................68
第五章 轻量级工作流系统的应用................................................................................69
§5.1 系统的部署.....................................................................................................69
§5.2 采购管理业务的分析.....................................................................................69
§5.3 工作流在采购管理业务中的应用.................................................................70
§5.3.1 工作流逻辑抽象..................................................................................71
§5.3.2 工作流过程的定义..............................................................................72
§5.3.3 工作流过程的执行..............................................................................73
§5.4 应用效果.........................................................................................................76
§5.5 本章小结.........................................................................................................77
第六章 总结与展望.....................................................................................................78
§6.1 论文总结.........................................................................................................78
§6.2 今后的展望.....................................................................................................79
参考文献.........................................................................................................................80
第一章 绪论
第一章 绪 论
§1.1 工作流的起源及发展
工作流[1]的概念起源于生产组织和办公自动化领域。它是针对日常工作中具有
固定程序的活动而提出的一个概念。在传统的应用中,企业和行政管理部门的业
务工作的主要内容就是在不同的部门之间进行文件和信息的传递,这种工作方式
的缺点是需要花费大量的人力资源,且生产和经营效率较低。工作流技术是辅助
实现企业业务过程建模、业务过程仿真分析、业务过程优化、业务过程管理与集成
最终实现业务过程自动化的核心技术。针对企业业务过程,运用工作流技术的理
论知识进行详细的分析、设计和建模,不仅可以规范企业的业务流程、发现业务流
程中的不合理环节进而对企业的业务流程进行优化和重组,而且在科学理论指导
下所建立的业务流程模型的本身就是企业非常重要的知识库和规则库,可以成为
指导企业实施计算机管理信息系统的模型,因此工作流技术应用的意义非常重大。
实际上,自从进入工业化时代以来,有关过程的组织管理和流程的优化工作
就一直在进行,它始终是企业管理的主要研究内容之一,只不过在没有引入计算
机信息系统的支持以前,这些工作都是由人工来完成的。在计算机网络技术和分
布式数据库技术迅速发展,多机协同工作技术日益成熟的基础上,于20世纪80年
代中期发展起来的工作流技术为企业更好地实现经营目标提供了先进的手段 。
1993年工作流管理联盟(Workflow Management Coalition, WFMC)的成立标志着
工作流技术在计算机应用研究领域之中被明确地划出了自己的一席之地,相应的
概念和术语也得到了人们的共识。
进入20世纪90年代,随着计算机与网络技术的迅速发展,特别是在Internet应
用日益普及的情况下,现代企业的信息系统的分布性、异构性和自治性的特征越
来越显著,相应的企业信息资源也分布在异构的计算机环境中,信息源之间的连
接表现出松散藕合的特点,这样的信息系统环境简称为HAD环境(异构、自治、分
布)[2]。企业物理位置的分散性和决策制定过程的分散性特征日益明显,对日常业
务活动的信息需求日益提高,Client/Server体系结构和分布式处理技术(CORBA,
WWW, OLE, JAVA等)的广泛应用,都说明了这样的事实:集中式信息处理的时
代即将成为过去,取而代之的将是大规模的异构分布式信息处理与应用执行环境
在这种大规模的分布式环境下高效运转相互关联的任务,并且对执行的任务进行
密切监控己成为一种发展趋势[3]。目前,在全球范围内,对工作流的技术研究以及
1
摘要:
展开>>
收起<<
摘要随着信息技术的迅猛发展和市场竞争的日益激烈,企业信息管理迫切需要一种能够支持实现业务流程自动化的技术,把传统的信息管理与业务流程管理结合起来管理企业的各种流程。工作流技术正是顺应这一需求孕育而生。工作流技术使得应用系统的流程逻辑与业务逻辑耦合度降低,提高了应用系统的开发效率和可维护性,从而使得企业可以很好地进行业务流程改造与重组,以适应市场的变化与需求。本文参考工作流管理联盟(WorkflowManagementCoalition,简称WfMC)制定的规范,根据中小型企业业务对工作流软件的需求情况和工作流产品现状,本着简单实用的原则,设计开发了一种面向中小型企业的轻量级工作流系统。文章首先...
相关推荐
作者:高德中
分类:高等教育资料
价格:15积分
属性:88 页
大小:3.2MB
格式:DOC
时间:2024-11-19