jBPM3.12用户指南中文翻译----第十九章 可插式架构
来源:互联网 发布:查看淘宝历史价格 编辑:程序博客网 时间:2024/05/16 23:49
这里先提供最后一章的译文。其它章节,以后有时间时,在整理一下放上来。
Chapter 19. Pluggable architecture可插式架构
The functionality of jBPM is split into modules. Each module has a definition and an execution (or runtime) part. The central module is the graph module, made up of the ProcessDefinition and the ProcessInstance. The process definition contains a graph and the process instance represents one execution of the graph. All other functionalities of jBPM are grouped into optional modules. Optional modules can extend the graph module with extra features like context (process variables), task management, timers, ...
jBPM的功能是划分成模块的。每一个模块有一个定义和一个执行(运行时)部分。中央模块式图表模块,由业务程序定义和业务程序实例组成。业务程序定义包含一个图表和代表这个图表的执行的业务程序实例。所有其它的jBPM功能组成了可选的模块。可选模块能够通过提供额外的特性扩展图表模块,如上下文(业务程序变量),任务管理,定时器等。
Figure 19.1. The pluggable architecture可插式架构
The pluggable architecture in jBPM is also a unique mechanism to add custom capabilities to the jBPM engine. Custom process definition information can be added by adding a ModuleDefinition implementation to the process definition. When the ProcessInstance is created, it will create an instance for every ModuleDefinition in the ProcessDefinition. The ModuleDefinition is used as a factory for ModuleInstances.
jBPM中可插式架构也是唯一的向jBPM引擎加入定制功能的机制。
当业务程序实例创建时,将为在业务程序定义内的每一个模块定义创建一个实例。模块定义是模块实例的一个工厂。
The most integrated way to extend the process definition information is by adding the information to the process archive and implementing a ProcessArchiveParser. The ProcessArchiveParser can parse the information added to the process archive, create your custom ModuleDefinition and add it to the ProcessDefinition.
最好的集成方案是,通过向业务程序定义存档文件添加信息的方式扩展业务程序定义的信息,这需要你自己实现一个ProcessArchiveParser业务程序存档文件解析器。ProcessArchiveParser业务程序存档文件解析器能够解析你加到业务程序存档文件上的信息,创建你自己的模块定义和把它增加到业务程序定义上!
public interface ProcessArchiveParser {
void writeToArchive(ProcessDefinition processDefinition, ProcessArchive archive);
ProcessDefinition readFromArchive(ProcessArchive archive, ProcessDefinition processDefinition);
}
To do its work, the custom ModuleInstance must be notified of relevant events during process execution. The custom ModuleDefinition might add ActionHandler implementations upon events in the process that serve as callback handlers for these process events.
要做这项工作,定制的模块实例在业务程序执行期间必须得到相关的事件通知。定制的模块定义可能在业务程序中增加ActionHandler实现来处理事件。这些ActionHandler接口实现类为这些业务程序事件作为回调处理器服务。
Alternatively, a custom module might use AOP to bind the custom instance into the process execution. JBoss AOP is very well suited for this job since it is mature, easy to learn and also part of the JBoss stack.
可选的,一个定制模块可能使用AOP把定制实例绑定到业务程序实例的执行上。Jboss AOP非常适合这个工作。
- jBPM3.12用户指南中文翻译----第十九章 可插式架构
- jBPM3.12用户指南中文翻译----第二章 起步
- jBPM3.12用户指南中文翻译----第三章 指南
- jBPM3.12用户指南中文翻译----第四章 面向图表编程
- jBPM3.12用户指南中文翻译----第五章 部署
- jBPM3.12用户指南中文翻译----第二章 起步
- jBPM3.12用户指南中文翻译----第三章 指南
- jBPM3.12用户指南中文翻译----第二章 起步[收藏]
- jBPM3.12用户指南中文翻译----第三章 指南[收藏]
- jBPM3.12用户指南中文翻译----第五章 部署[收藏]
- jBPM3.12用户指南中文翻译----第一章 绪论
- jBPM3.12用户指南中文翻译----第一章 绪论
- jBPM3.12用户指南中文翻译----第一章 绪论[收藏]
- jBPM3.12用户指南中文翻译----第四章 面向图表编程[收藏]
- JBPM3 用户指南-- 任务管理
- jbpm用户指南翻译:第12章 调度程序
- Jbpm用户指南翻译:第10章 上下文
- jbpm用户指南翻译:第1章 介绍
- web2.0并不是一种技术,而是一种理念
- 移动ISV大调查系列报告之一——Windows Mobile平台的移动设备支持率占上风
- 在NWDS上发布测试J2EE应用出现错误“Only Administrators have the right to perform this operation.”
- 电脑族的视力保护常识
- 关于败家的一点点感悟
- jBPM3.12用户指南中文翻译----第十九章 可插式架构
- 一招克死所有病毒!
- 对象
- 英文操作系统如何正常显示中文软件
- 用递归处理树型结构(表结构)
- Linux下的samba服务器配置文件详解 smb.conf
- MIT开发的画图程序
- Informatica客户端无法连接到服务器端
- 两个vs2005的问题