工作流模型
场景驱动的工作流模型构造方法

gae 等等。大多数工作流模 型在形式化语 义 、 ug) 可 视化 、 易修 改性 和描述 的全面性等 方面难 以均衡 , 存在一个共 同问题 是不完全适合 对从初始 需求 出 发, 逐步构造 、 细化工作流模型 。
本 文 提 出 的 S MC( cn r — r e d l o — D S ea oD vn Mo e C n i i
维普资讯
第 7卷
第 6期 2 0 0 7年 3月
科
学
技
术
与
工
程
⑥
Vo . N . 17 o6
Ma .2 0 l 07 "
17 —8 9 20 ) —0 7 0 6 1 11 (0 7 6 10 —5
S in e T c n l g n n i e rn ce c e h oo y a d E gn e i g
(n r ao ot l e ) 型 , a e A l 则 I o t nC n o N t 模 fm i r s V ndr a t s 定义 了 wFnt 即工作流网) ; 于复杂过程建 .e 5( _ 等 用
模的统一建模 语言 U ML( n i oeig Ln U ie M dl a— fd n
景( 系统执行 时的一 系列 可观察 的行为序列 ) 于 处
核心地位。场 景不仅仅 可以诱导 、 表示需 求 , 还能 驱动设 计 和工作 流 模型 的演 化。采 用 U M 作 为 C
S MC方法 中 的场 景 描 述 语 言 , C 提 供 一 系 列 表 D U M
20 0 6年 1 1月 1 3日收到 湖南省教育厅优秀青年项 目(6 03 、 0 B 2 )
基于工作流的测绘工程管理模型探析

基于工作流的测绘工程管理模型探析摘要:工作流指从事某项工作时工作流程相对比较固定,表现出一定的规律性,并且将活动抽象为一种角色、规则或者任务,并对其进行有效的监控,从而实现提高工作效率的目的。
本文从GIS角度介绍有关工作流的相关知识,以期为我国测绘工程管理的提供有价值的参考。
关键词:工作流测绘工程管理模型1 GIS应用介绍GIS指融合了地理空间特征和各种信息统计的综合性较强的信息系统,其最大的特点是数据处理和管理能力显著。
我国GIS的发展和电子政务之间的关系比较密切,尤其在测绘工程中的应用,主要应为测绘工程设计到的数据处理拥有较强的区域性。
GIS空间特征为测绘信息的建设奠定坚实的技术基础。
GIS在测绘信息化中的应用主要体现以下几个方面(1)GIS为测绘信息提供基本的空间数据参考。
测绘工作中需要大量的统计数据、业务数据等,但是它更需要借助详细的地理信息数据为其提供相关的空间信息,在众多的数据中空间数据是其他数据业务的基础。
(2)GIS应用在测绘工程中最大的便利是:它能进行高效的查询。
在地理信息系统查询和现实功能的帮助下,能够提供可视化的信息查询,以此提高测绘工作的查询效率。
(3)GIS能够为测绘部门分析数据和制定决策提供技术支撑,尤其在制定决策时,能够凭借相信的地理信息系统为相关部门提供决策参考依据,从而有助于测绘工作的顺利开展。
总之,GIS技术能够为相关测绘部门提供收集、分析信息的具体方法,同时还提供有效的技术支撑,以此提高测绘工程的工作效率、2 GIS技术和工作流的融合将GIS技术和工作流进行有机的融合,建立了一套较为灵活的图文一体化应用,同时把工作流自动化作为技术主线,将它和GIS的核心模块融合为一体,为将来测绘系统的建立指明了道路。
将GIS和工作流进行整合形成自身独特的特点,下面进行简单的介绍。
(1)复杂程度显著提高。
首先,集成系统可以处理各种各样的数据,这些数据不但包括相关的业务数据,而且还包括空间和工作流数据,并且实际工作中空间数据还能和关联的数据共同进行。
一种基于ECA规则的审批工作流模型的浅析

( 1 )其 中 “ 具 有 相 应 权 限 ”是 指 具 有 访
1工作流与审批工作流
随着 经济 发展 不 断发展 、企业 的不 断成 长,经济环境 、企业 的经 营管理也 曰趋复杂化 。 工 作流 的概 念起源 于生 产组 织和 办公 自 动化领域 。随着 计算机 网络技术和计算机相 关
能保证产 品的质量 ;但是 审批工作流有 时候 高 权 限的角色可 以之 间进行流程大跨度 的审批 甚 至是一键审批完成 。所 以,审批角色和对应 的
审批权限是审批工作流中关键因素。
比如流程的动态调整、 经办人 员的任意设定等 。 但对 于整个 系统,却缺少包括业务、流程、人
员 、权 限及 输 出 等 的 一 体 化 解 决 方 案 。一 些 特
正 确,或 者期 望 的 x ml 的字段 只要 在 实际 的 x ml 的字段中能够找 到即可,而实际 x ml 比期
实例给出说明。
望x ml 字 段多的情形可以忽略。为此 ,我们 扩 参考文 献 展 了 Xml Un i t ,实 现两 个 XML的 比较,对 于 [ 1 ] C e d r i C C B e u S t ,H a n i S u 1 e i m a n , N e x t
S o f t w a r e A p p l i c a t i o n・ 软件应用
一
种基于 E C A规则的审批工作流模型的浅析
文/ 孙 政
企业每天都会产生许多需要进行 审批 的业务 申 为 了提 高审批 工作 流 的灵 活 性 与更 细粒度 的管控 ,和增 强 审 批 系统 可扩展 性 与 维护 性,提 出
A d v a n c e d C o n c e p t s . [ M ] . 2 0 0 7 ( 1 0 ) .
工作流模型扩展及其在制造过程质量管理系统中的应用

扩展 模 型 的基 础 上 , J P 工 作 流 引 擎 的 流程 实 现 机 制 为 以 BM 例 , 绍 了工 作 流技 术在 制 造 过程 质 量 管理 系统 中的 应 用 . 介
关 键 词 : 工作 流模 型 ;工 作 流 引 擎 ; 量 管理 ; 质
J PM Bห้องสมุดไป่ตู้
中图 分 类 号 : TH1 6 6
摘
要 : 以过 程 工 程 理 论 作 为 工作 流 模 型 扩 展 的 理
不 包括任 何具 体 的工 作 流 信 息 , 以满 足 简单 的过 程
定 义 的相 互 转 换 .
论 基础 , 工 作 流 管 理联 盟提 出的 工 作 流 过 程 定 义 元 模 型 进 对 行 模 型 构 建 方 面 上 的扩 展 , 出一 种 由过 程 模 型 、 提 活动 模 型 、 组 织模 型 、 源 模 型 和 信 息 模 型 组 成 的 工作 流 扩 展 模 型 .在 资
Gr up Te h o c nolgy & Pr du to o r i ato Vo1 o o c i n M de n z i n .27, o N .2, 01 2 0
数据模 型 的形 式 .依 据不仅 要 为建模 用 户提 供定 义 工作 流所需 要 的组件 或 元 素 的 主要 特 征 , 还需 要 清 晰地 描述任 意业 务情 况 下 的 工作 流 的 需求 , 考 过 参 程工程 相关理 论 , 文将 工 作 流 过程 元 模 型扩 展 成 本 为过程 模型 、 活动 模 型 、 织模 型 、 源 模 型 以及 信 组 资
个相 对 简单 的概念 模 型 , 描 述 了过程 以外 的因 素 只
对过 程 的支持作 用 , 忽 略 了过 程 以外 的 因素 对过 而
基于活动网络的工作流模型实现

所有节 点实例 ,并设 开始 节点实例的状态为 “ 就绪 ”,其它
类 型节 点实例的状态 为 “ 初始 化 ”。③节点实例表 中状态为 “ 就绪 ”的节点实例进行状态 转移 ,激活后继节点 。④节点
动 节点 ( 过程 )实例 非正常、强制结束 。⑥执行完 :活动 节 点实例 执行 完毕 以后 进入 “ 行完 ”状态 。⑦ 结束 :节 点 执
( 过程 )实例满足结束条件 ,实例结束 。
图2 活动 节点的状态转移
幂—罡 囊 显
2 实现算法 该实现算法适 合于所 有用 以上状态转移规则进行模 型演 进 的工作过程 :①在满足 过程的开始条件情况 下,创建过程 实 例 ,并在 过程 实例 表 中生成 一条 新记录 ,代 表该 过程实
图3 标志节点和逻辑节点的状态转移
一
实例表 中状 态为 “ 执行完 ”的节 点实例进行状态转移 ,激活 后继节 点。⑤ 过程实例表 中状态 为 “ 执行 ”的过程实例进行 状态转移 。⑥ 用户从工作项列表 中选择 工作项执行 ,系统根
个过程的执行过程通过状态 、开始条件和结束条件
控制 。过程 共设计 了四种状态 ,分别 为 “ 初始态 ”、 “ 执
基于活动网络的工作流模型实现
付 伟
( 河南省 安 阳市 电子信 息学校 ,河 南 安 阳 4 5 0 ) 5 0 0 摘 要: 本文主 要介 绍 了一种模型 的状态转 移规则 ,笔者依据 该规 则 ,提 出一 种实现算 法。
关键词: 状态转移 ;工作流模 型 ;算 法
D I 1 . 9 9 Ji n1 7 —6 9 .01 .701 O : 5 6 / .s.6 1 5 62 2 . 0 s O 5
工作流模型

过程视图是工作流模型的核心视图。
它描述企业的业务流程,定义业务过程中包含的活动以及这些活动之间的逻辑关系。
活动和活动间以连接弧表示控制关系。
通过描述活动的基本属性,如活动由谁执行,有哪些人员、组织或盟员企业负责执行,活动执行需要的软件(如应用程序)和硬件(如机床设备)资源,以及活动的触发条件、执行状态等,可以建立过程视图、资源视图和组织视图的关系。
过程视图是本文研究的主要内容,本文通过ECA规则来表达过程视图。
基于ECA规则和元操作的工作流建模原理3.1 工作流模型的结构图:工作流模型的结构1.1.1过程视图过程视图是工作流模型的核心视图。
它描述企业的业务流程,定义业务过程中包含的活动以及这些活动之间的逻辑关系。
活动和活动间以连接弧表示控制关系。
通过描述活动的基本属性,如活动由谁执行,有哪些人员、组织或盟员企业负责执行,活动执行需要的软件(如应用程序)和硬件(如机床设备)资源,以及活动的触发条件、执行状态等,可以建立过程视图、资源视图和组织视图的关系。
过程视图是本文研究的主要内容,本文通过ECA规则来表达过程视图。
1.1.2组织视图组织视图描述企业中的组织单元和组织单元间的关系。
组织单元是具有一定功能和责任的组织实体,一般会承担过程模型产生的各种任务。
组织单元之间往往存在从属或协作关系,形成一定的对应关系。
本文对组织视图描述中,采用一种面向对象的关系模型,不同于传统的层次结构。
是在组织模型中引入类的概念(如角色类、组织类、人员类、职位类等),建立类之间的关系模型,支持层次化的查找和匹配规则,便于工作流的任务分配和执行者绑定。
1.1.3资源视图资源视图描述企业中资源的类型以及资源实体的属性。
资源是工作流模型中非常重要的一个概念,是活动可以执行的必备条件。
资源类型可以是执行活动所需的软件和硬件设施等,或者是活动执行后产生的新的物理实体。
组织视图和资源视图之间存在着映射关系,即每一个资源实体都有与其对应的责任组织单元,该组织单元负责对此资源实体的使用和维护。
系统分析辅导:工作流模型设计

系统分析辅导:工作流模型设计摘要:工作流模型是组织机构经营过程的模型表示,但由于工作流建模理论研究的相对滞后,现行工作流管理系统中普通存在语义不够丰富、柔性不好、表示不直观等问题。
为此作者在开发UniFlow工组流管理系统时,设计了一套基于有向图理论的工作流模型,该模型有效的解决了这些问题。
本文主要从工作流模型理论出发向读者介绍了本模型的设计思想。
文章首先详细介绍了工作流模型的定义和组成关系,然后详细介绍了基于有向图理论的工作流模型的主要功能和设计思想。
关键词:工作流工作流模型有向图过程1 引言工作流模型是对组织机构业务过程的抽象表示。
工作流模型是整个工作流管理系统的基础,它的确定性保证了系统内各组成部分之间交互的一致性,也决定了一个工作流管理系统从设计开发到运行实施的诸多环节。
不同的工作流模型也就形成了不同的工作流管理系统。
相对工作流产品的实现技术和发展而言,工作流建模理论的研究相对滞后,在建模方法上还没有形成比较系统化的理论体系。
目前已有的建模方法主要有:基于活动网络的建模方法、基于Petri网的建模方法、基于语言行为理论的建模方法、基于活动与状态图的建模方法和基于扩展事务模型的建模方法等。
但这些工作流模型普遍都存在以下问题:(1)模型语义不够丰富,表示复杂问题的能力不足;(2)模型的柔性不好,不容易处理在执行过程中出现的不确定性问题;(3)表示方法不够直观等。
在信息管理自动化的环境下,工作流模型必须采用简单、直观、又具有较强描述能力的面向组织用户的模型。
因此,作者设计UniFlow工作流管理系统时,在参照工作流管理联盟(Workflow Manangement Coalition 简称:WfMC)工作流理论的基础上,博采众长,建立了基于有向图理论的UniFlow工作流管理系统工作流模型,该模型有效的解决了工作流模型中普通存在的问题。
下文主要向读者详细介绍这一模型的相关理论与设计思想。
2 工作流模型概要企业、政府机关等组织机构是一个复杂的系统,用过程的观点来看待这些组织机构,组织机构的组成元素就是过程,过程的组成元素就是活动;工作流模型就是对这些业务过程的抽象表示。
工作流参考模型英文

工作流参考模型英文Workflow Reference ModelIntroductionIn today's highly competitive business environment, organizations strive to optimize their operations and processes to improve efficiency and productivity. One of the key ways to achieve this is by implementing effective workflow management systems. A workflow refers to the series of tasks, activities, and steps that are necessary to complete a specific process or project. A workflow management system enables organizations to streamline their processes, automate tasks, and monitor progress, leading to improved productivity and better quality output. This article will provide a comprehensive reference model for designing and implementing a workflow management system.1. Workflow DefinitionThe first step in implementing a workflow management system is to define the workflows. This involves identifying the key processes and tasks within an organization and mapping out the sequence of activities required to complete these processes. It is important to involve all relevant stakeholders, including employees, managers, and subject matter experts, in this process to ensure a comprehensive understanding of the workflows.2. Workflow AnalysisAfter defining the workflows, the next step is to analyze them.This involves identifying bottlenecks, inefficiencies, and areas where automation can be implemented. A thorough analysis of the workflows allows organizations to identify areas for improvement and design more efficient processes. Workflow analysis can be done through process mapping, data analysis, and collaboration with the employees involved in the workflows.3. Workflow DesignOnce the workflows have been defined and analyzed, the next step is to design the workflows. This involves determining the sequence of tasks, setting up standards and guidelines, and designing the workflow structure. Workflow design also includes creating decision points, defining inputs and outputs, and identifying the roles and responsibilities of individuals involved in the workflows. It is important to consider the organization's goals, resources, and constraints during the workflow design phase.4. Workflow AutomationAutomation is a key aspect of workflow management systems as it eliminates manual, repetitive tasks and allows employees to focus on more value-added activities. Workflow automation involves implementing software tools and technologies that automate tasks, facilitate communication and collaboration, and monitor progress. Automation can be achieved through the use of workflow management software, integration with other systems, and the use of artificial intelligence and machine learning technologies.5. Workflow ImplementationAfter designing the workflows and automating tasks, the next step is to implement the workflows. This involves training employees on the new processes, communicating the changes, and integrating the workflows into the organization's existing systems and processes. Workflow implementation also involves monitoring and evaluating the workflows to ensure they are delivering the desired outcomes. Feedback from employees and stakeholders should be collected and used to make any necessary adjustments or improvements to the workflows.6. Workflow Monitoring and ControlOnce the workflows have been implemented, it is important to monitor and control them to ensure they are functioning effectively. Workflow monitoring involves tracking the progress of tasks, identifying bottlenecks, and monitoring key performance indicators to measure the efficiency and effectiveness of the workflows. Workflow control involves taking corrective actions when necessary, such as reassigning tasks, reallocating resources, or making process improvements based on the monitoring data.7. Continuous ImprovementWorkflow management is an iterative process that requires continuous improvement. Organizations should regularly review and evaluate their workflows, gather feedback from employees and stakeholders, and identify areas for further optimization. Continuous improvement involves making ongoing adjustments and enhancements to the workflows to ensure they remain alignedwith the organization's goals and objectives.ConclusionImplementing an effective workflow management system is essential for organizations to optimize their operations, improve efficiency, and achieve better outcomes. This reference model provides a comprehensive framework for designing and implementing a workflow management system. By following this model, organizations can streamline their processes, automate tasks, and monitor progress to achieve higher productivity, better quality output, and a competitive edge in the market.8. Workflow IntegrationAnother important aspect of workflow management is integrating workflows with other systems and processes within the organization. This ensures smooth flow of information and tasks, eliminating silos and improving efficiency. Workflow integration involves connecting the workflow management system with other software applications, such as customer relationship management (CRM) systems, enterprise resource planning (ERP) systems, and project management tools. Integration allows data and tasks to be seamlessly transferred between systems, reducing manual effort and data duplication.Integration also enables real-time data sharing, providing stakeholders with a comprehensive view of the workflows and facilitating better decision-making. For example, integrating the workflow management system with a CRM system allows sales teams to access customer data and update it in real-time, improvingcustomer service and sales effectiveness. Similarly, integrating the workflow management system with a project management tool enables project managers to track project progress and allocate resources efficiently.9. Workflow CollaborationCollaboration is a crucial aspect of workflow management as it promotes communication, knowledge sharing, and teamwork. A workflow management system should include features that facilitate collaboration among team members working on a workflow. This includes features such as task assignment, notification system, and document sharing.Task assignment allows workflow managers to assign tasks to specific individuals or teams, ensuring clear accountability and ownership of tasks. A notification system notifies team members about new tasks, task updates, or deadlines, ensuring everyone is aware of their responsibilities and can take appropriate action. Document sharing enables team members to collaborate on documents, share feedback, and make updates in real-time, improving productivity and reducing version control issues.10. Workflow OptimizationContinuous optimization is a key aspect of workflow management. Once the workflows have been implemented, organizations should regularly review and evaluate their effectiveness. This involves analyzing key performance indicators (KPIs) and gathering feedback from employees and stakeholders.KPIs can include metrics such as cycle time, throughput, and error rates, which provide insights into the efficiency and effectiveness of the workflows. Gathering feedback from employees and stakeholders allows organizations to identify areas for improvement and make necessary adjustments to the workflows.Workflow optimization may involve making process improvements, reallocating resources, or reassigning tasks to improve efficiency and reduce bottlenecks. It may also involve exploring new technologies or tools that can further optimize the workflows, such as artificial intelligence or machine learning algorithms that can automate decision-making or predict behavior patterns in the workflows.11. Workflow ScalabilityAs businesses grow and evolve, their workflows may need to be scaled up or down to accommodate changing demands. Therefore, a workflow management system should be designed to be scalable, allowing organizations to easily adjust their workflows as needed. Scalability can be achieved through flexible workflow design, modular architecture, and the ability to easily add or remove tasks and processes. It also involves having a robust infrastructure that can handle increased workflow volume without sacrificing performance or causing system downtime.Additionally, a scalable workflow management system should be able to integrate with other systems and technologies seamlessly,allowing for future expansion or integration with new systems. 12. Workflow Security and ComplianceAnother important aspect of workflow management is ensuring the security and compliance of the workflows. Organizations need to protect sensitive data and ensure that workflows adhere to applicable regulations and industry standards.Workflow management systems should have built-in security features, such as access control, authentication, and encryption, to protect data from unauthorized access or breaches. They should also support auditing and logging capabilities to track and monitor workflow activities, ensuring compliance with regulatory requirements.Moreover, organizations should regularly assess their workflows for risks and vulnerabilities and implement appropriate controls to mitigate them. This may involve conducting risk assessments, implementing cybersecurity measures, and training employees on data protection and compliance standards.ConclusionA well-designed and implemented workflow management system can significantly improve productivity, efficiency, and quality of output for organizations. This reference model provides a comprehensive framework for organizations to follow when designing, implementing, and managing their workflows.By defining and analyzing workflows, designing efficient processes, automating tasks, and integrating systems, organizations can streamline their operations and achieve better outcomes. Collaboration, optimization, scalability, and security are all essential considerations to ensure the ongoing success of the workflows.Continuous improvement is crucial in maintaining the effectiveness of workflows, as organizations need to adapt to changing business demands and leverage emerging technologies. By following this model and continuously optimizing their workflows, organizations can stay competitive and achieve their goals in today's fast-paced business environment.。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
一:数据模型E_R图
说明:
1.1信息模型
信息模型的核心是业务活动表(简称活动)ACTIVITY,其他相关的表结构主要有业务过程PROCESS、业务规则(活动流转规则)ROUTING_RULE、活动前依赖规则PRE_RULE、任务指派规则ASSGN_RULE、任务列表TO_DO_TASK_LIST以及已完成的任务列表HAVE_DONE_TASKS。
从图中可以看出,ACTIVITY与其他表之间都存在联系。
1.1.1活动类型
每个业务过程由若干业务活动组成,不同的业务活动通过各不相同的ACT_ID来唯一标识,ACT_TYPE则指明相应活动的类型。
同一个业务活动在工作流运行时可能具有多个实例(instance)。
我们将活动的实例称为任务1,将属于同一业务过程的任务称为属于同一批次的任务。
有的业务活动可能针对具体的业务环节,即在前台(后台)对应实际的应用逻辑;有的业务活动则不针对具体的业务环节。
活动类型可以进行如下分类:
●INITIAL,初始化活动,业务过程的第一个活动,不针对具体业务环节。
●INTERACTION,常规交互活动,INTERACTION活动对应实际的业务环节,在前台对应实际的应用逻辑,完成此活动需要实际人员的参与。
在所有活动类型中,只有INTERACTION
活动才需要与实际人员交互。
●AUTOMATION,常规自动活动,同样对应实际的业务环节,但是实际的应用逻辑位于后台,由工作流引擎自动调用完成。
AUTO_EXECUTIVE指明相应应用逻辑的执行体。
●AND_BRANCH,与分支活动,不针对具体业务环节,此活动将同时派生出若干后继活动。
●AND_MERGE,与汇聚活动,是一同步活动,不针对具体业务环节,流经此处的任务将进行与汇聚同步。
此活动将进行活动的前依赖规则检查,只有所有的前依赖规则均被满足,才可流向后继活动。
●OR_MERGE,或汇聚活动,是一同步活动,不针对具体业务环节,流经此处的任务将进行或汇聚同步。
它同样将进行活动的前依赖规则检查,但是在前依赖规则只要存在一条满足指定条件的,就可以流向后继活动。
OR_MERGE_FLAG用于指定或汇聚条件。
●VOTE_MERGE,投票汇聚活动,是一同步活动,不针对具体业务环节,同一批次的任务只有达到NUM_VOTES_NEEDED所指定的票数才可流向后继活动。
●DUMMY,哑活动,不针对具体业务环节,它可以作为某些活动的虚拟后继活动,还可以使用它来构造更为复杂的业务规则。
若哑活动有后继活动,则可以立即流向后继活动。
●COMPLETION,终结活动,表明相应业务过程的终结,不针对具体业务环节。
1.1.2业务规则的表示
在工作流引擎中,业务规则可以分解成活动的前依赖规则和活动的后转发规则。
活动的前依赖规则指明相应活动的启动条件,启动条件是通过相应活动的直接前趋活动以及相应的状态标志来表示的,前依赖规则包含顺序、与汇聚、或汇聚和投票汇聚四种规则。
活动的后转发规则指的是当前活动所对应的任务结束后该启动哪些后继活动,后转发规则包含顺序、或分支和与分支三种规则。
图1中的PRE_RULE表、ROUTING_RULE表以及ACTIVITY 表中的ACT_TYPE和RULE_APPLIED等字段联合表示活动的前依赖规则和后转发规则。
由于我们将各种汇聚活动单独抽取出来,因此可以用很简洁的关系结构来表达活动的前依赖和后转发规则。
首先ACTIVITY表中的RULE_APPLIED字段指示相应活动应该采用何种规则判断准则,它可以有四种取值:DEFAULT、USER_DEFINED_PRE_RULE、USER_DEFINED_POST_ROUTING_RULE和USER_DEFINED_BOTH_RULE。
DEFAULT表示由工作流引擎自动根据PRE_RULE表和ROUTING_RULE表来进行规则检查。
考虑到业务规则的多样性,本文提供了自定义方式来表达那些无法用缺省规则表示的特殊业务规则,ACTIVITY表中的EX_PRE_RULE_FUNC和EX_POST_RULE_FUNC分别指定了前依赖和后转发规则的自定义调用接口。
自定义业务规则的行为完全由相应的程序确定。
一般情况下,大多数业务规则都可以直接通过DEFAULT方式表达。
接下来将讨论在DEFAULT方式下前依赖规则和后转发规则的表示。
活动的后转发规则主要通过表ROUTING_RULE表示,后转发规则可以用如下四元组来表达:
Post_Routing_Rule = (PRE_ACT_ID, CURR_ACT_ID, COMPLETION_FLAG, NEXT_ACT_ID_LIST)
其含义是:在当前活动的ACT_ID为CURR_ACT_ID的情况下,如果当前活动的前趋活动的ACT_ID为PRE_ACT_ID并且当前活动的结束标记为COMPLETION_FLAG的话,工作流将流向由NEXT_ACT_ID_LIST所指明的后继活动。
前依赖规或则需联合PRE_RULE、ROUTING_RULE和ACTIVITY共同表示,前依赖规则可以用一个三元组来表达,即:
Pre_Dependency_Rule = (PRE_ACT_ID, CURR_ACT_ID, PRE_DEPNT_SET)
PRE_DEPNT_SET为前依赖活动集,其中的每一个元素又可以用另外一个三元组来表示:
Element_Pre_Depnt_Set = (DEPNT_ID, DEPNT_ACT_ID, DEPNT_ACT_STATUS)
Pre_Dependency_Rule的含义是:由前趋活动PRE_ACT_ID流转过来的当前活动CURR_ACT_ID能否启动取决于前依赖活动集PRE_DEPNT_SET中所包含的那些活动是否已经到达各自应该到达的结束状态DEPNT_ACT_STATUS。
可以看出,只有在前依赖活动集中出现的那些前趋活动才可以联合构成对当前活动的约束关系,如果某个前依赖规则三元组中的PRE_DEPNT_SET为空集,则表明由此前趋活动流到当前活动的流转过程跟其他前趋活动没有任何关系,与此相应的当前活动可以立即启动。
补充:为了能够更好的完成活动后转发规则中的或分支的实现加入
INPUT_INTERFACE(引擎与前端交互接口表)与ACT_ATTCH_PARMS表。
一个活动结束后如果在不同的条件下存在不同转发路径系统中将会
有两种方式完成路径的选择
1:将上一个活动的结束状态写入INPUT_INTERFACE表中EXCHANGE_PARAMS 中并标注INPUT_RULE字段的值为:ACTIVITY_RESULT这样引擎便直接用该结果来查找下一活动节点。
2:如果需要由引擎来得到该活动的结果需要向EXCHANGE_PARAMS 字段提供系统要求的属性值并标注INPUT_RULE字段值为:ACTIVITY_PARAMS系统将依据ACTIVITY表中的ACT_ROUTER字段指明的辅助类完成结果的判断。
一个活动转移需要提供那些参数由表ACT_ATTCH_PARMS指明。
系统结构图:
PCM工作流引擎可实现的流程模型
1:流程起点模型
2:流程激活模型
2.1:人工激活
大多数的流程激活,都是因为人为的信息数据输入或产生。
比如一个订单处理流程,客户提交了订单信息(订单信息数据产生),则激活了订单处理流程的开始。
2.2定时激活与催办
3:简单运转模型
3.1:串行
3.2:自循环
无条件自循环,与有条件自循环
4:发散运转模型
4.1并行(同步发散必须同步聚合)
4.2:异或模型(多通道但同时只有一条)
5:聚合模型
5.1同步聚合
6:特殊模型
6.1回退
6.2催办
催办,和上面的“委托代办”,以及下面即将介绍的“取回”,都属于应用中,需要解决一类问题:在执行完任务A 到任务B 的运转后,任务A 设定一个催办日期,在催办日期到来的时候,向任务B 发送催办请求,以催促任务B 的执行。
其前提是,任务A 已经执行过,任务正在执行(有可能已经执行完)。
6.3取回
取回,在流程中也是较为通用的动作:流程由任务A 运转到任务B,任务B 虽然接受了A
所发送的请求或数据,但还没有确认执行的情况下,任务A 有权取回,重新执行。