欢迎来到天天文库
浏览记录
ID:42603621
大小:556.00 KB
页数:32页
时间:2019-09-18
《JBPM 6 开发者指南 Chapter 7》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Chapter7.DefiningYourEnvironmentwiththeRuntimeManagerBynow,wehaveseenthetwomaincomponentsofajBPM6runtime,theKIEsessionandtheHumantaskservice.Thesecomponentsareprovidedasthebasiccomponentsneededtorunprocessinteractionsbetweenhumansandsystems.Astheresponsibilitiesoftheprocess
2、runtimegrows,connectorstoexternalsystemsshouldbeaddedtotransformtheprocessengineintoahighlyconfigurableenterpriseintegrationplatform,wherecoordinationbetweendifferentsystemscanbeeasilymanagedinabusiness-friendlyway.Theentireconfigurationinvolvedincreatingaruntimefortheproce
3、ssengine,theHumantaskcomponent,andalltheexternalsystemsconnectorscouldbecomecumbersomeifnotmanagedinasingleplace.Inthischapter,wewilllearnabouttheruntimemanagercomponent,whichisdesignedtocreateabridgebetweenallthecomponentsandconfigurationsinvolvedinaprocessexecution.Thisco
4、mponentcanbeusedtocreateafullruntimefortheprocessengine.Forthischapter,ourgoalswillbeasfollows:UnderstandtheroleoftheruntimemanagerinthejBPM6architectureGetfamiliarwiththeavailableruntimemanagersandinterfacesStartextendingtheAPItocreateourowncustomruntimemanagersUnderstandi
5、ngtheroleoftheruntimemanagerTheruntimemanager’smainroleinanapplicationistoprovideanapplication-widepointtoaccessprocessruntimes(allthenecessaryinterconnectedservicestoexecuteaprocessexecutionwithinaspecificdomain).Thenatureofthoseruntimesandhowmanydifferentruntimescanexisti
6、naparticulardomainisadecisionthateachoftheruntimemanagerimplementationsavailablehastomake.Bydefault,aruntimewillbecomposedoftwomaincomponents:theKIEsessionwheretheprocessisexecutedandtheHumantaskcomponentwherehumantaskswillbehandled.Botharegroupedandreturnedfromtheruntimema
7、nagerthroughtheRuntimeEngineinterface:publicinterfaceRuntimeManager{RuntimeEnginegetRuntimeEngine(Context>context);voiddisposeRuntimeEngine(RuntimeEngineengine);StringgetIdentifier();voidclose();}publicinterfaceRuntimeEngine{KieSessiongetKieSession();TaskServicegetTaskSer
8、vice();}Runtimemanagerswillreturnaspecificnumberofruntimeengines,dependingontheirs
此文档下载收益归作者所有