OsWorkFlow learning (concept)

The following text from the clear thinking ( http://www.blogdriver.com/gigix/113138.html )

OSWorkflow basic concepts - -

                                      

Step
Roughly equivalent to the position where the process . Such as corporate annual inspection, annual report on corporate end considered a step, Trade and Industry Bureau considered the second step, the window in the review considered the third step. Each step can have a plurality of states (status) and a plurality of actions (Action), with Workflow.getCurrentSteps () can be obtained all current step (if any parallel process step may have multiple, one inspection may also e.g. located in the "preliminary" step and "advertising business qualification" step).
 
Status
In the process a step in the state of . It is easy to understand, such as "awaiting identification", "do not pass the audit," and the like. OSWorkflow in the state is completely customizable by the developer, the state discrimination purely string matching, flexibility, very strong, and you can see the definition file doing very well.
 
Action
Resulting in motion the process state changes . An action typically consists of two parts: the condition may perform this operation (conditions), as well as the execution result of this action (results). Conditions can be used to determine the BeanShell script, so it has great flexibility, almost anything related to the process can be used to make a judgment.
 
Result
Results of the implementation of the action . This is an important concept. result is divided into two, conditional-result and unconditional-result. After performing an action, first of all conditions is determined whether the conditional-result is satisfactory when the result is used; contidional-result if no condition is satisfied, then using the unconditional-result. unconditional-result information needs to be specified in two parts: old-status, the "current state into what step"; follow-up state, step + status may be used to specify a new state, or may enter the split or join.
 
conditional-result is very useful. Or in the annual inspection, for example, also submit the annual report, "uncommitted" and "return" is a different state, implementation of the "submit" action in these two states on the basis of the results are "initial submission" and "return after submitting again. " Then you can consider using conditional-result on the "submit" action.
 
Split/Join
Segmentation and integration processes . Simple concept, providing a plurality of Split result; join the current step of determining the plurality of state, to provide a result.
 

Reproduced in: https: //www.cnblogs.com/swingboat/archive/2005/07/27/201463.html

Guess you like

Origin blog.csdn.net/weixin_33708432/article/details/93957324