欢迎来到天天文库
浏览记录
ID:43709749
大小:202.28 KB
页数:24页
时间:2019-10-13
《jbpm5持久化及流转流程剖析》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Jbpm5持久化及流转流程剖析1Jbpm5持久化结构IRulesJbpm5实例流程图v>ctTaskresponse下面的文档讲解了基于该流程的步骤流程TaskClientHandleiicompleteWorkltemOexecuteWorkltem()I'askHandleinrequestTaskClient2第一步启动任务流程时序图:第一步人工4F1(jw卜:1iicIraskllandler^^,TaskServer:持久化@2.启斗流程j三AT••“L划号抵2.1;解析bpmn2文件II2.刑开启事务2.3:ksessiom开始执行任务III2.3:1执彳亍Sta
2、rtNode,执行beforeNoc2.3.2执行HumanTaskNodE执行befor2.1启动TaskServer3.初始化handler使用线程启动TaskServer,初始化持久化OrganizationEntity,将流程中需要使用到的3.]初/groupld,actorld.全部初始化到表屮。2.2启动流程I)根据路径解析*切1讪2或*.bpmn文件,放入到内存中。在该类注册了相关的対象org.jbpm.bpmn2.xml.BPMNSemanticModule•4•调用excuteWorkltern方法4.14.2调用ClieaddHandler(npxcper
3、tynfnewFropercyHandler());addHandler(trlaner,,newLaneHandler());addHandler(rr3t&xt.E*zei:tnznewStartEventHandler());addHandler(irendEventn,newEndEventHandler());addHandler(rrexcl-i3Lve3a*evzayrrfnewExclusiveGatewayHandLer());addHandler(rrLncL*J3LveGate77ayirfnewZncl^si^zeGatewayHandler());a
4、ddHandler(nparallelGat.e77ayr,.nevzFaraLlelGatey/ayHandler());addHandler(rrevent5a3edGate7;ayr,fnewEventSasedGacewayHandler());addHandler(rrccmplexG&tewaynfnewCcir.pLexGa*eway^andler());addHandler(n3crLptTa3kn,newScriptTa3kHandLer());addHandLer(rrt&3kr,,newTa3k^a^dler());addHandler(n^3erTa3
5、kn,newUserTask^andler());addHandler(rririanuaLTa3knznewManiaLTa3kHandLer());addHandler(rr3ervLceTa3kl,z.new5ervlceTa3kHandler());addHandler(rr3endTa3knfnewSendTask^andler());addHandLer(rrxeceLveTa3knfnewReceLveTa3kHandler());addHandler(rrb6、r());addHandLer(rrcallActivi.cyr,znewCaLlActivlty^andLer());addHandLer(n3-jbFrcce33nznewS*.ibPrcce33HandLer());addHandler(rrad^oc5-jbFrcce33r,rnewAdHccSubProce33^andler());addHandler(rrLntermed-ateCatchEventr,,newZnuerrr.ediateCatc^Event^andler());addHandler(rrLntermed-ateThxowEventn,newZn*7、erir.edLateTrirowEven*handler());addHandler(,rbo^ndaryE*7entnznew3c^ndaryEventHandler());addHandler(,rda*aCbjectnznewDaraCbjectHandler());addHandler(,rrran3act-cnn,newTransacticnHandler());addHandler(,r3eq-JienceFlcwr,znewSeq^enceFlowHandler());addHandle
6、r());addHandLer(rrcallActivi.cyr,znewCaLlActivlty^andLer());addHandLer(n3-jbFrcce33nznewS*.ibPrcce33HandLer());addHandler(rrad^oc5-jbFrcce33r,rnewAdHccSubProce33^andler());addHandler(rrLntermed-ateCatchEventr,,newZnuerrr.ediateCatc^Event^andler());addHandler(rrLntermed-ateThxowEventn,newZn*
7、erir.edLateTrirowEven*handler());addHandler(,rbo^ndaryE*7entnznew3c^ndaryEventHandler());addHandler(,rda*aCbjectnznewDaraCbjectHandler());addHandler(,rrran3act-cnn,newTransacticnHandler());addHandler(,r3eq-JienceFlcwr,znewSeq^enceFlowHandler());addHandle
此文档下载收益归作者所有