加入并合并活动图

加入并合并活动图

本文介绍了加入并合并活动图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在统一建模语言活动图中联接和合并之间有何区别?举个例子来更清楚地理解。

解决方案

加入节点(请参见


What is the difference between Join and Merge in Unified Modeling Language Activity Diagram. Give an example to understand more clearly.

解决方案

Join Node (see reference 1):

Merge Node (see reference 2):


For example in below diagram:

A decision is used after a fork, the two flows coming out of the decision need to be merged into one before going to a join.

Why?: Otherwise, the join will wait for both flows.

So, Activity 2 and Activity 3 are our alternate flows and only one of which will arrive. And they are not synchronize incoming.

However, the Concurrent_Activity and result of decision between Activity 1 and Activity 2 (that merged into one output) are synchronize incoming concurrent flows. The join waits for both to perform and continue.

这篇关于加入并合并活动图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 20:31