工作流的一些基本概念

工作流的定义(摘抄自wfmc, 1996 glossary):

The automation of a business process, in whole or part, during which documents, information or tasks are passed from one participant to another for action, according to a set of procedural rules.

工作流管理系统的定义:

A system that defines, creates and manages the execution of workflows through the use of software, running on one or more workflow engines, which is able to interpret the process definition, interact with workflow participants and, where required, invoke the use of IT tools
and applications.

工作流管理系统其实是解释已定义好的工作流,产生并管理触发请求、警告,并且与外部系统进行交互。但是,工作流管理系统excludes simple relational database systems and e-mail systems with programmable delivery mechanisms.

其实,工作流管理系统的核心是工作流引擎。说白了,工作流引擎就是一段程序,负责一些东西的流转。

All workflow systems are process oriented.Each process and sub-process comprises some activities. An activity is a single logical step in the process.

看工作流的文档,经常会出现interface n这一说法,下面解释一下这些interface(一共5个)的内容

  1. Process Definitions (Interface 1)
    Interface 1 Definition deals with passing Process Definitions from external tools to the workflow engine where there are enacted.
    这一层的关键是Process Definition Language,目前的标准为XPDL。在工作流引擎的开发中,应该(但不是必须)为用户提供可视化的流程定义工具,根据用户的绘画自动生成相应的XML

    在Process Definition Language中,必须提供的定义如下:
    工作流类型定义(工作流过程名称,版本号,过程开始结束条件,安全、统计及其他控制数据)
    活动(活动名称,活动类型,活动的前提、后续条件,其他日程限制)
    事物条件(流程或执行条件)
    工作流程相关数据(数据名称和路径,数据类型)
    角色(名称和组织实体)
    应用调用(范型或名称,调用的参数,应用所在位置或路径)

    API中有关过程定义语言的处理内容:
    会话处理(连接,断开与参与系统的会话连接)
    工作流定义操作(获得过程定义的名称,提供会话句柄以供对象级的操作,读取、写入第一级的过程定义对象)
    工作流定义对象操作(根据工作流定义创建、获得和删除对象,获得、设置和删除对象属性)

  2. Workflow APIs (Interface 2 & 3)
    These interfaces have been combined and cover the WAPIs (Workflow API’s).
    不用细说了吧,拿到的src版本里那些API就是这个了

    API中有关工作流客户端应用接口(Interface 2)的处理内容:
    会话处理(连接,断开与参与系统的会话连接)
    工作流定义操作(获得过程定义的名称和属性)
    过程控制功能(创建、开始、中介一个独立过程实例,悬挂、恢复一个独立的过程实例,改变独立过程实例或活动实例的状态,指派、查询一个过程或活动的属性)
    过程状态功能(打开、关闭一个过程或活动实例的查询,设置可选的过滤器,根据情况获得过滤后的过程或活动实例的细节,获得特定的过程或活动的细节)
    工作表/工作项处理功能(打开、关闭一个工作表查询,设置可选的过滤器,根据情况获得工作表中的项,选择、重新指派、结束一个工作项时的通知,指派或查询一个工作项的属性)
    过程管理功能(改变过程定义和过程实例的操作状态,改变所有特定类型的过程和活动实例的状态,指派属性给所有特定类型的过程和活动的实例,结束全部过程实例)
    数据处理功能(获得/返回工作流相关数据或应用数据)

    API中有关应用调用接口(Interface 3)的处理内容:
    会话处理(连接,断开与参与系统的会话连接)
    活动管理功能([工作流引擎-->应用] 开始活动,悬挂、恢复、退出活动
                         [应用-->工作流引擎]活动结束通知,信号事件,查询活动属性)
    数据处理功能(为工作流提供相关数据,提供应用数据或数据地址)
  3. Inter-Engine Workflow (Interface 4)
    Interface 4 defines the mechanisms that workflow product vendors are required to implement in order that one workflow engine may make requests of another workflow engine to effect the selection, instantiation, and enactment of known process definitions by that other engine.
    这一层描述了多个工作流引擎交互的方面,并且,各个引擎间的交互对用户是透明的。WFMC定义了8个交互等级:
    Level 1—No interoperability
    Level 2—Coexistence
    Level 3—Unique Gateways
    Level 4—Limited Common API Subset
    Level 5—Complete workflow API
    Level 6—Shared Definition Formats
    Level 7—Protocol Compatibility
    Level 8—Common Look and Feel Utilities
  4. Audit and Monitoring (Interface 5)
    The support of this specification in workflow products allows analysis of consistent audit data across heterogeneous workflow products. During the initialization and execution of a process instance, multiple events occur which are of interest to a business, including WAPI events, internal workflow management engine operations and other system and application functions.

    API中有关管理和监视接口的处理内容
    用户管理操作(使能、删除、悬挂、修复用户或工作组的权限)
    角色管理操作(定义、删除、修复角色,添加、删除角色属性)
    统计管理操作(查询、打印、新增、删除统计跟踪或时间日志)
    资源控制操作(添加、删除、修改过程或活动的同步等级,审查资源控制数据)
    过程管理功能(转换一个工作流过程定义或其现有过程实例的操作状态,使能或禁止特定的过程定义版本,改变特定类型的所有过程或活动的状态,为特定类型的所有过程或活动指派属性,终结全部过程实例)
    过程状态功能(打开/关闭对一个过程或活动实例的查询,设置操作过滤,根据特定需要取得过程实例或活动实例的细节,取回一个特定过程或活动实例的细节)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值