SHARK workflow implementation and comparison of WMFC & OMG specifications
----- Part 1: Initialization and Execution of Process
Active status list:
1, Open.Running
2, open.not_running.not_started
3, open.not_running.suspended
4, closed.completed
5, closed.terminated
6, closed.aborted
Process class name: WfProcess, all specific process instances are managed by: WFProcessMGR classes, call the CREATE_PROCESS method to enable an instance of a processs.
The initialization process of workflow activity is as follows:
In the instantiateprocess class, the corresponding initialization message is called to complete the actionPerformed method. details as follows:
1. Flow instances WfProcess are created by: WFProcessMGR classes, calling the CREATE_PROCESS method to enable an instance of Processs.
2. Get the context required to start the process:
NameValue [] context = proc.process_context ();
3. If there is an essential parameter, the user interface is displayed, and the user will continue.
4. Call the START () function of this instance to perform this process. as follows:
1) Change_State ("open.running"); setting the status of this Process to start execution;
2) Use:
Set Starts = Sharkutilities.getStartActivities (GetProcessDefinition ());
Come get this processs all can have an active activity.
3) Call StartActivity, perform the Activities above, and perform specific activities.
to be continued
Author: Tian Chunfeng
Accesine@163.com
I am looking at OsWorkflow, Shark, OFBIZ, OBE, and JBPM discovered that workflow difficulties is:
1. How to link the specific tasks of the workflow and workflow execution.
That is: For example: a workflow has three specific activity activities of A, B, and C.
So, how to help these Activity and the specific Java method functions together,
For example: How to let the A process execute the createLog () method, the B process executes the MakeDesicision () method, and so on.
2, how workflow allows users to customize in B / S.
If the friend has similar experience, we can communicate.