(10)Shark工作流的實現和WMFC&OMG規範的對比 (轉)

themoney發表於2007-10-05
(10)Shark工作流的實現和WMFC&OMG規範的對比 (轉)[@more@]

Shark工作流的實現和WMFC&OMG規範的對比

  -----第十部分:分析obe自帶例子引擎的過程

:namespace prefix = o ns = "urn:schemas--com::office" />

關鍵字: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...

 [DE]: Transition 3cb3f6d1-56c6-11d8-8fe6-8f02bbfa91d7 l 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]: Loo 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.Fo- 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:myworkflowdocobetest-1.0b2obetest-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

兩個類的執行原理。

待續

田春峰

to:accesine@163.com">accesine@163.com

 


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10794571/viewspace-974831/,如需轉載,請註明出處,否則將追究法律責任。

相關文章