3

Is it valid to have the following combined join and fork nodes in a UML activity diagram or is it wrong?

I searched online and in some UML books but I cannot find a clear answer or a similar example.

The idea is to have two actions (1 and 2) that need to be completed and then synchronised before the start of actions 3 and 4.

Should I just introduce a sync action between a join and a fork node to be on the safe side?

enter image description here

John Stef
  • 585
  • 1
  • 4
  • 16

2 Answers2

6

Yes, that is valid.

In the UML specifications version 2.5.1 you'll find on page 391

The functionality of a JoinNode and a ForkNode can be combined by using the same node symbol, as illustrated in Figure 15.31. This notation maps to a model containing a JoinNode with all the incoming ActivityEdges shown in the diagram and one outgoing ActivityEdge to a ForkNode that has all the outgoing ActivityEdges shown in the diagram.

enter image description here

Geert Bellekens
  • 12,788
  • 2
  • 23
  • 50
-1

I wonder if this how you want it done?

Fork end merge

Geert Bellekens
  • 12,788
  • 2
  • 23
  • 50
nolisj
  • 98
  • 1
  • 2
  • 11
  • @geert, it's been a while since I used/browsed StackOverflow. I noticed that you edited my comment and I wanted to ask you in a private message but the facility is not there. What does the removal of my edit/comment mean? Regards. – nolisj Oct 17 '22 at 09:22
  • 1
    You shouldn't add comments in answers. Answers should only contain Answers, and nothing else. People down/up vote answers based on whether they find the answer useful, and that's it. They are not obligated in any way to justify that vote. A tip for images is to use the image buttons SO provides (or simply paste the image). Another user can then edit your answer and inline the image simply by adding a "!" in front of it. Because you did it another way, this is no longer possible. – Geert Bellekens Oct 17 '22 at 10:08