jBPM3.12用户指南中文翻译----第十九章 可插式架构
2006-10-09 09:45
399 查看
这是Jboss的jBPM3.12框架的用户指南的中文翻译。我的翻译风格是中英文对照,只翻译部分我认为重要的,不翻译简单的英文,以免浪费你我的时间。同时,对于其中的部分内容,我会在翻译中做出解释和写上我的理解。
这里先提供最后一章的译文。其它章节,以后有时间时,在整理一下放上来。
jBPM的功能是划分成模块的。每一个模块有一个定义和一个执行(运行时)部分。中央模块式图表模块,由业务程序定义和业务程序实例组成。业务程序定义包含一个图表和代表这个图表的执行的业务程序实例。所有其它的jBPM功能组成了可选的模块。可选模块能够通过提供额外的特性扩展图表模块,如上下文(业务程序变量),任务管理,定时器等。
Figure19.1.Thepluggablearchitecture可插式架构
ThepluggablearchitectureinjBPMisalsoauniquemechanismtoaddcustomcapabilitiestothejBPMengine.CustomprocessdefinitioninformationcanbeaddedbyaddingaModuleDefinitionimplementationtotheprocessdefinition.WhentheProcessInstanceiscreated,itwillcreateaninstanceforeveryModuleDefinitionintheProcessDefinition.TheModuleDefinitionisusedasafactoryforModuleInstances.
jBPM中可插式架构也是唯一的向jBPM引擎加入定制功能的机制。
当业务程序实例创建时,将为在业务程序定义内的每一个模块定义创建一个实例。模块定义是模块实例的一个工厂。
ThemostintegratedwaytoextendtheprocessdefinitioninformationisbyaddingtheinformationtotheprocessarchiveandimplementingaProcessArchiveParser.TheProcessArchiveParsercanparsetheinformationaddedtotheprocessarchive,createyourcustomModuleDefinitionandaddittotheProcessDefinition.
最好的集成方案是,通过向业务程序定义存档文件添加信息的方式扩展业务程序定义的信息,这需要你自己实现一个ProcessArchiveParser业务程序存档文件解析器。ProcessArchiveParser业务程序存档文件解析器能够解析你加到业务程序存档文件上的信息,创建你自己的模块定义和把它增加到业务程序定义上!
Todoitswork,thecustomModuleInstancemustbenotifiedofrelevanteventsduringprocessexecution.ThecustomModuleDefinitionmightaddActionHandlerimplementationsuponeventsintheprocessthatserveascallbackhandlersfortheseprocessevents.
要做这项工作,定制的模块实例在业务程序执行期间必须得到相关的事件通知。定制的模块定义可能在业务程序中增加ActionHandler实现来处理事件。这些ActionHandler接口实现类为这些业务程序事件作为回调处理器服务。
Alternatively,acustommodulemightuseAOPtobindthecustominstanceintotheprocessexecution.JBossAOPisverywellsuitedforthisjobsinceitismature,easytolearnandalsopartoftheJBossstack.
可选的,一个定制模块可能使用AOP把定制实例绑定到业务程序实例的执行上。JbossAOP非常适合这个工作。
这里先提供最后一章的译文。其它章节,以后有时间时,在整理一下放上来。
Chapter19.Pluggablearchitecture可插式架构
ThefunctionalityofjBPMissplitintomodules.Eachmodulehasadefinitionandanexecution(orruntime)part.Thecentralmoduleisthegraphmodule,madeupoftheProcessDefinitionandtheProcessInstance.Theprocessdefinitioncontainsagraphandtheprocessinstancerepresentsoneexecutionofthegraph.AllotherfunctionalitiesofjBPMaregroupedintooptionalmodules.Optionalmodulescanextendthegraphmodulewithextrafeatureslikecontext(processvariables),taskmanagement,timers,...jBPM的功能是划分成模块的。每一个模块有一个定义和一个执行(运行时)部分。中央模块式图表模块,由业务程序定义和业务程序实例组成。业务程序定义包含一个图表和代表这个图表的执行的业务程序实例。所有其它的jBPM功能组成了可选的模块。可选模块能够通过提供额外的特性扩展图表模块,如上下文(业务程序变量),任务管理,定时器等。
Figure19.1.Thepluggablearchitecture可插式架构
ThepluggablearchitectureinjBPMisalsoauniquemechanismtoaddcustomcapabilitiestothejBPMengine.CustomprocessdefinitioninformationcanbeaddedbyaddingaModuleDefinitionimplementationtotheprocessdefinition.WhentheProcessInstanceiscreated,itwillcreateaninstanceforeveryModuleDefinitionintheProcessDefinition.TheModuleDefinitionisusedasafactoryforModuleInstances.
jBPM中可插式架构也是唯一的向jBPM引擎加入定制功能的机制。
当业务程序实例创建时,将为在业务程序定义内的每一个模块定义创建一个实例。模块定义是模块实例的一个工厂。
ThemostintegratedwaytoextendtheprocessdefinitioninformationisbyaddingtheinformationtotheprocessarchiveandimplementingaProcessArchiveParser.TheProcessArchiveParsercanparsetheinformationaddedtotheprocessarchive,createyourcustomModuleDefinitionandaddittotheProcessDefinition.
最好的集成方案是,通过向业务程序定义存档文件添加信息的方式扩展业务程序定义的信息,这需要你自己实现一个ProcessArchiveParser业务程序存档文件解析器。ProcessArchiveParser业务程序存档文件解析器能够解析你加到业务程序存档文件上的信息,创建你自己的模块定义和把它增加到业务程序定义上!
publicinterfaceProcessArchiveParser{
voidwriteToArchive(ProcessDefinitionprocessDefinition,ProcessArchivearchive);
ProcessDefinitionreadFromArchive(ProcessArchivearchive,ProcessDefinitionprocessDefinition);
}
Todoitswork,thecustomModuleInstancemustbenotifiedofrelevanteventsduringprocessexecution.ThecustomModuleDefinitionmightaddActionHandlerimplementationsuponeventsintheprocessthatserveascallbackhandlersfortheseprocessevents.
要做这项工作,定制的模块实例在业务程序执行期间必须得到相关的事件通知。定制的模块定义可能在业务程序中增加ActionHandler实现来处理事件。这些ActionHandler接口实现类为这些业务程序事件作为回调处理器服务。
Alternatively,acustommodulemightuseAOPtobindthecustominstanceintotheprocessexecution.JBossAOPisverywellsuitedforthisjobsinceitismature,easytolearnandalsopartoftheJBossstack.
可选的,一个定制模块可能使用AOP把定制实例绑定到业务程序实例的执行上。JbossAOP非常适合这个工作。
相关文章推荐
- 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.12用户指南中文翻译----第二章 起步
- jBPM3.12用户指南中文翻译----第二章 起步[收藏]
- jBPM3.12用户指南中文翻译----第二章 起步
- jBPM3.12用户指南中文翻译----第三章 指南
- JBPM用户指南翻译:第3章 指南_1
- it你好linux学习文档之haproxy架构指南(中文翻译版)