Workflow Control Pattern 7 - Structured Synchronizing Merge
2011-10-03 12:51:44 1 举报
The convergence of two or more branches (which diverged earlier in the process at a uniquely identifiable point) into a single subsequent branch such that the thread of control is passed to the subsequent branch when each active incoming branch has been enabled. The Structured Synchronizing Merge occurs in a structured context, i.e. there must be a single Multi-Choice construct earlier in the process model with which the Structured Synchronizing Merge is associated and it must merge all of the branches emanating from the Multi-Choice. These branches must either flow from the Structured Synchronizing Merge without any splits or joins or they must be structured in form (i.e. balanced splits and joins). Synchronizing join, synchronizer. Examples: -Depending on the type of emergency, either or both of the despatch-police and despatch-ambulance tasks are initiated simultaneously. When all emergency vehicles arrive at the accident, the transfer-patient task commences.
作者其他创作
大纲/内容
CID
c
B
Figure 2 :
E
CIDxBOOL
C
if cond1 then empty else 1'c
S2
if cond1 then 1'c else empty
SolutionsBoth the Local Synchronizing Merge (WCP37) and the General Synchronizing Merge (WCP38) are able to be used in unstructured process models. The latter is also able to be used in arbitrary loops. The Local Synchronizing Merge tends to be more attractive from an implementation perspective as it is less computationally expensive than the General Synchronizing Merge.
p2
p3
if cond2 then empty else 1'c
A
[cond1 or else cond2]
p1
p5
Structured Synchronizing Merge
S1
if cond2 then 1'c else empty
p4
I1
[st1 or else st2]
D
o1
Figure 1 : Structured synchronizing merge pattern
0 条评论
下一页