分享
 
 
 

(10)Shark工作流的实现和WMFC&OMG规范的对比

王朝other·作者佚名  2006-01-08
窄屏简体版  字體: |||超大  

Shark工作流的实现和WMFC&OMG规范的对比

-----第十部分:分析obe自带例子引擎的执行过程

关键字:Shark 工作流 WMFC OMG 规范

下面工作流执行的过程参见:-----第五部分:工作流流程的设计

下面是采用obe引擎执行第五部分定义的“辞职申请”的过程的日志。

[INFO]: Loading applications in package pkg

-1...

[INFO]: 0 applications loaded

org.obe.util.Duration [INFO]: Duration(0, null)

[INFO]: Created workflow process [id=wfp-1,name=人员辞职流程]

[INFO]: Redefinable header not found

[INFO]: Created activity [id=提交辞职申请,name=提交辞职申请]

[INFO]: Loading extended attributes

[INFO]: Created activity [id=部门经理批准,name=部门经理批准]

[INFO]: Loading extended attributes

[INFO]: Created activity [id=总经理批准,name=总经理批准]

[INFO]: Loading extended attributes

[INFO]: Created activity [id=部门经理复查,name=部门经理复查]

[INFO]: Loading extended attributes

[INFO]: Created activity [id=财务审查,name=财务审查]

[INFO]: Loading extended attributes

[INFO]: Created activity [id=人力资源审查,name=人力资源审查]

[INFO]: Loading extended attributes

[INFO]: 6 activities loaded

[INFO]: Loading transitions in process wfp-1...

[DEBUG]: Transition 3cb3f6d1-56c6-11d8-8fe6-8f02bbfa91d7 loop type: null

[INFO]: Loading extended attributes

[INFO]: 6 transitions loaded

[INFO]: Loading extended attributes

org.obe.util.Duration [INFO]: Duration(0, null)

[INFO]: Created workflow process [id=782fc727-56c6-11d8-8fe6-8f02bbfa91d7,name=财务审查]

org.obe.test.OBETest [INFO]: Executing workflow process pkg-1:wfp-1

org.obe.test.OBETest [INFO]: Executing synchronously

org.obe.engine.WorkflowEngine [INFO]: Created date: Wed Feb 04 11:54:55 CST 2004

org.obe.engine.WorkflowProcessInstance [INFO]: Starting process 1

org.obe.engine.WorkflowProcessInstance [INFO]: Start activity: 提交辞职申请

org.obe.engine.WorkflowProcessInstance [INFO]: Executing activity 提交辞职申请

org.obe.engine.WorkflowProcessInstance [INFO]: Executing incoming transitions fo

r 部门经理批准

org.obe.engine.WorkflowProcessInstance [INFO]: Executing activity 部门经理批准

org.obe.engine.WorkflowProcessInstance [DEBUG]: Transition loop type: NOLOOP

org.obe.engine.WorkflowProcessInstance [INFO]: Executing outgoing transitions fo

r 部门经理批准

org.obe.engine.WorkflowProcessInstance [DEBUG]: Looping through transition restr

ictions [size=0]

org.obe.engine.WorkflowProcessInstance [DEBUG]: 2 transitions, executing AND spl

it (default)

org.obe.engine.WorkflowProcessInstance [INFO]: findCurrentThreadReference(PID-1)

org.obe.engine.WorkflowProcessInstance [INFO]: Current thread: Thread[PID-1,5,ma

in]

org.obe.engine.WorkflowProcessInstance [INFO]: AND split; execute in new thread

org.obe.engine.WorkflowProcessInstance [INFO]: AND split; execute in new thread

org.obe.engine.WorkflowProcessInstance [INFO]: ThreadReference parent child coun

t: 2

org.obe.engine.WorkflowProcessInstance [INFO]: Workflow completed

org.obe.engine.WorkflowEngine [INFO]: Returning from executeSynch()

org.obe.engine.WorkflowProcessInstance [INFO]: Executing incoming transitions fo

r 财务审查

org.obe.engine.WorkflowProcessInstance [INFO]: Executing activity 财务审查

org.obe.engine.workitem.SubFlowWorkItem [INFO]: Executing sub flow in synchronou

s mode

org.obe.engine.WorkflowEngine [INFO]: Created date: Wed Feb 04 11:58:47 CST 2004

org.obe.engine.WorkflowProcessInstance [INFO]: Starting process 2

org.obe.engine.WorkflowProcessInstance [INFO]: Executing incoming transitions fo

r 人力资源审查

org.obe.engine.WorkflowProcessInstance [INFO]: Executing activity 人力资源审查

org.obe.engine.workitem.SubFlowWorkItem [INFO]: Executing sub flow in synchronou

s mode

org.obe.engine.WorkflowEngine [INFO]: Created date: Wed Feb 04 11:59:06 CST 2004

org.obe.engine.WorkflowProcessInstance [INFO]: Starting process 3

org.obe.engine.WorkflowProcessInstance [DEBUG]: Loading workflow relevant data f

rom package

org.obe.engine.WorkflowProcessInstance [DEBUG]: Loading workflow relevant data f

rom parameters

org.obe.engine.util.ContextUtilities [INFO]: Formal parameters size: 0

[DEBUG]:org.formproc.Form - Validating groups

org.obe.engine.WorkflowProcessInstance [INFO]: Returning from workflow process:

no activities

org.obe.engine.WorkflowEngine [INFO]: Returning from executeSynch()

org.obe.engine.WorkflowProcessInstance [DEBUG]: Transition loop type: NOLOOP

org.obe.engine.WorkflowProcessInstance [INFO]: Executing outgoing transitions fo

r 财务审查

org.obe.engine.WorkflowProcessInstance [DEBUG]: Looping through transition restr

ictions [size=0]

org.obe.engine.WorkflowProcessInstance [DEBUG]: Executing single outgoing transi

tion

org.obe.engine.WorkflowProcessInstance [INFO]: Executing incoming transitions fo

r 部门经理复查

org.obe.engine.WorkflowProcessInstance [INFO]: Executing activity 部门经理复查

org.obe.engine.WorkflowProcessInstance [INFO]: Executing loop: WHILE

org.obe.engine.WorkflowProcessInstance [DEBUG]: Loading workflow relevant data f

rom package

org.obe.engine.WorkflowProcessInstance [DEBUG]: Loading workflow relevant data f

rom parameters

org.obe.engine.util.ContextUtilities [INFO]: Formal parameters size: 0

[DEBUG]:org.formproc.Form - Validating groups

org.obe.engine.WorkflowProcessInstance [INFO]: Returning from workflow process:

no activities

org.obe.engine.WorkflowEngine [INFO]: Returning from executeSynch()

org.obe.engine.WorkflowProcessInstance [DEBUG]: Transition loop type: NOLOOP

org.obe.engine.WorkflowProcessInstance [INFO]: Executing outgoing transitions fo

r 人力资源审查

org.obe.engine.WorkflowProcessInstance [DEBUG]: Looping through transition restr

ictions [size=0]

org.obe.engine.WorkflowProcessInstance [DEBUG]: Executing single outgoing transi

tion

org.obe.engine.WorkflowProcessInstance [INFO]: Executing incoming transitions fo

r 部门经理复查

org.obe.engine.WorkflowProcessInstance [INFO]: Executing activity 部门经理复查

E:\my\workflow\doc\obetest-1.0b2\obetest-1.0b2>pause

请按任意键继续 . . .

从上面的执行可以看出:

org.obe.engine.WorkflowProcessInstance

org.obe.engine.WorkflowEngine

这两个类执行了关键的工作流程部分,是obe具体执行的主体部分。

org.obe.engine.WorkflowProcessInstance 中主要的方法包括:

1、 startProcess

2、 stopProcess

3、 resumeProcess

4、 pauseProcess

可见,obe中主要的工作是在WorkflowProcessInstance中执行的。

下文主要分析

org.obe.engine.WorkflowProcessInstance

org.obe.engine.WorkflowEngine

两个类的执行原理。

待续

田春峰

accesine@163.com

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有