SHARK workflow implementation and comparison of WMFC & OMG specifications
----- Part 10: Analyze the implementation of OBE self-with example engine
Keywords: Shark workflow WMFC OMG specification
See the process of workflow below see: ----- Part 5: Design of Workflow Process
Below is a log of the process of performing the "resignation application" defined by the OBE engine.
[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 =
Personnel resignation]
[Info]: RedNable Header Not Found
[INFO]: CREATED ACTIVITY [ID = Submit resignation application, Name = submit resignation application]
[INFO]: Loading Extended Attributes
[INFO]: CREATED ACTIVITY [ID = Department Manager Approved, Name = Department Manager Approved]
[INFO]: Loading Extended Attributes
[INFO]: CREATED ACTIVITY [ID = General Manager Approved, Name = General Manager Approved]
[INFO]: Loading Extended Attributes
[INFO]: CREATED ACTIVITY [ID =
Department of Sector Manager, Name = Department Manager Review]
[INFO]: Loading Extended Attributes
[INFO]: CREATED ACTIVITY [ID =
Financial review, Name = Financial Review]
[INFO]: Loading Extended Attributes
[INFO]: CREATED ACTIVITY [ID =
Human Resources Review, Name = Human Resources Review]
[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 = Financial Review]
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:
Submit a resignation application
Org.obe.EnGine.WorkflowProcessInstance [INFO]: Executing Activity Submit resignation org.obe.Engine.WorkflowProcessInstance [info]: Executing incoming Transitions fo
R Dior Manager
Org.obe.Engine.WorkflowProcessInstance [INFO]: Executing Activity Department Manager Approval
Org.obe.Engine.WorkflowProcessInstance [Debug]: Transition loop type: NOLOOP
Org.obe.Engine.WorkflowProcessInstance [info]: Executing Outgoing Transitions fo
R Dior Manager
Org.obe.Engine.WorkflowProcessInstance [Debug]: looping through transition restr
Ivests [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 Financial Review
Org.obe.Engine.WorkflowProcessInstance [INFO]: Executing Activity Financial Review
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 Human Resource Review
Org.obe.Engine.WorkflowProcessInstance [INFO]: Executing Activity Human Resources Review
Org.obe.Engine.Workitem.SubflowWorkItem [INFO]: Executing Sub Flow in Synchronous 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 Financial Review
Org.obe.Engine.WorkflowProcessInstance [Debug]: looping through transition restr
Ivests [size = 0]
Org.obe.Engine.WorkflowProcessInstance [Debug]: Executing Single Outgoing Transi
Tion
Org.obe.Engine.WorkflowProcessInstance [info]: Executing incoming Transitions fo
R Dior Manager
ORG.OBE.EnGine.WorkflowProcessInstance [info]: Executing Activity department manager review
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 Human Resource Review
Org.obe.Engine.WorkflowProcessInstance [Debug]: looping through transition restr
Ivests [size = 0]
Org.obe.Engine.WorkflowProcessInstance [Debug]: Executing Single Outgoing Transi
Tion
Org.obe.Engine.WorkflowProcessInstance [info]: Executing incoming Transitions fo
R Dior Manager
ORG.OBE.EnGine.WorkflowProcessInstance [info]: Executing Activity department manager review
E: /MY/Workflow/doc/obetest-1.0b2/obetest-1.0b2> PAUSE
Press any key to continue.
As can be seen from the above execution:
Org.obe.Engine.WorkflowProcessInstance
Org.obe.Engine.WorkflowEngine
These two classes perform critical workflow part, which is the body part of the object of OBE. Org.obe.Engine.WorkflowProcessInstance includes:
1, StartProcess
2, StopProcess
3, ResumeProcess
4, PauseProcess
Wait
It can be seen that the main task in OBE is performed in WorkflowProcessInstance.
The main analysis below
Org.obe.Engine.WorkflowProcessInstance
Org.obe.Engine.WorkflowEngine
The implementation principle of two classes.
to be continued
Tian Chunfeng
Accesine@163.com