|国家预印本平台
首页|工作流引擎Osworkflow及其持久化机制的研究

工作流引擎Osworkflow及其持久化机制的研究

Research of Workflow Engine OSWorkflow and its Persistence Mechanism

中文摘要英文摘要

由OpensymPhony组织开发的开源工作流引擎OSWorkflow是一种非常灵活的工作流引擎。它主要基于有限状态机理论,通过状态的迁移描述工作的流转。每一种状态(state)被描述成为step ID和status。从一种状态(state)转移到另一种状态通过动作(action)来触发。在工作流的生命周期内通过一个或者多个活动的状态表现、描述、和管理当前工作流程中的各种数据和操作状况。这些核心的思想表现在OSWorkflow引擎核心包里面,并且通过用一个简单的XML文件来描述业务工作流程。同时,OSWorkflow是一个“低端”的工作流实现,对流程的定义和持久化机制的扩展都需要通过用户自定义脚本和代码的形式来完成。本文正是结合自己的实际工作经验,除了对OSWorkflow的核心技术架构展开研究外,还对它的持久化机制进行的扩展。本文首先介绍了OSWorkflow的核心思想,然后研究了OSWorkflow中的重要概念和实现机制,其次深入分析了OSWorkflow的持久化机制和用于持久化的数据库表结构和内部接口,最后,提出了通过ibatis实现OSWorkflow持久化的具体解决方案。

OSWorkflow is a open-source workflow engine developed by OpensymPhony. OSWorkflow is based on the FSM theory, it describe the transition of work by migration of states. Every state is composed of step ID and status, a state move to another state through the action to trigger. During the workflow life cycle, one or more activities of the performance of the state can describe Data transmission and status of operation of current work. OSWorkflow defines the process definition in an XML file called workflow descriptor, and we can manage the business process by these XML files. However, OSWorkflow is a low level workflow implementation for developers and architects; it is not a quick’plug-and-play’solution for non-technical end users, we must to code to extend the persistence mechanism. The mechanism of OSWorkflow and the solution to extend the persistence interface is mainly studied in this paper combined with the author’s practical work experience. In this paper, the main theory of OSWorkflow is introduced firstly, and the important concepts is studied, and then the database structures and internal interfaces which related with persistence are analyzed emphatically. At last, a solution for implement persistence mechanism by ibatis is given.

孙亮

计算技术、计算机技术

工作流引擎OSWorkflow持久化ibatis

workflow engineOSWorkflowpersistenceibatis

孙亮.工作流引擎Osworkflow及其持久化机制的研究[EB/OL].(2008-12-23)[2025-08-18].http://www.paper.edu.cn/releasepaper/content/200812-706.点此复制

评论