(10)Shark工作流的實現和WMFC&OMG規範的對比 (轉)
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Shark工作流的實現和WMFC&OMG規範的對比 (轉)
- (9)Shark工作流的實現和WMFC&OMG規範的對比 (轉)
- (5)Shark工作流的實現和WMFC&OMG規範的對比 (轉)
- Event Loop的規範和實現OOP
- 強大的工作流引掣:shark
- git分支管理和工作流規範:具體規範Git
- Promise/A+ 規範的實現Promise
- git 工作流和git commit規範GitMIT
- 規範BOT專案的法律對策(轉)
- Git commit message和工作流規範GitMIT
- 前端工程工作流規範前端
- 對規範施工企業專案管理的思考(轉)專案管理
- C# 單例模式的實現和效能對比C#單例模式
- js實現繼承的幾種方式和對比JS繼承
- Memcached 與 Redis 實現的對比Redis
- memcached與redis實現的對比Redis
- 實現 CommonJs 規範中的 Require 模組JSUI
- 實現一個符合 Promise/A+ 規範的 MyPromisePromise
- git分支管理和工作流規範:基本概念說明Git
- git分支管理和工作流規範:不同場景細化和演示Git
- 測試角度看公司流程規範對比後篇
- JavaMoney規範(JSR 354)與對應實現解讀JavaJS
- Web前端——CSS的命名規範和範例Web前端CSS
- Activiti工作流與BPMN2.0規範
- Git工作流及釋出規範(App)GitAPP
- Flannel和Calico網路外掛工作流程對比
- 基於JWT規範實現的認證微服務JWT微服務
- Promise的原始碼實現(完美符合Promise/A+規範)Promise原始碼
- 手寫實現滿足 Promise/A+ 規範的 PromisePromise
- 如何實現一個符合promiseA+規範的promisePromise
- 實現一個完美符合Promise/A+規範的PromisePromise
- Ajax 跨域難題 - 原生 JS 和 jQuery 的實現對比跨域JSjQuery
- Java 程式編碼的規範(轉)Java
- 淳安縣移民工程專案實現規範化管理(轉)
- 簡單計算器的程式導向實現和麵向物件實現對比物件
- DataWorks2.0的“業務流程”與1.0的“工作流”的對比
- 用ES6實現符合promise/A+規範的PromisePromise
- 用checkstyle實現svn的程式碼規範性檢查