0
11kviews
Explain the concept of join and fork with example.

Subject: Object Oriented Modeling and Design

Difficulty: Medium

Marks: 8 Marks

1 Answer
0
787views

Join in Activity diagram:

  1. A join in Activity diagram represents the synchronization of two or more concurrent flows of control.
  2. A join may have two or more incoming transitions and one outgoing transition.
  3. Above the join, activities associated with each of these paths continue in parallel.
  4. At the join, the concurrent flows synchronize, means each waits until all incoming flows have reached at the join, at which point one flow of control continues on below the join.

Notation:

enter image description here

Fork in Activity diagram:

  1. A fork in activity diagram represents the splitting of a single flow of control into two or more concurrent flows of control.
  2. A fork may have one incoming transition and two or more outgoing transitions, each of which represents an independent flow of control.
  3. Below the fork, the activities associated with each of these paths continue in parallel.

Notation:

enter image description here

Example:

enter image description here

In the above example there are two forks and two joins. Joins and forks should balance, meaning that the number of flows that leave a fork should match the number of flows that enter its corresponding join.The activity Stream audio needed to tell the activity Synch mouth when important pauses and intonations occurred. Similarly, for Synch mouth, we would see transitions triggered by these same signals, to which the Synch mouth state machine would respond.

Please log in to add an answer.