Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Representing loops in a UML communication diagram

Given the following sequence diagram, how to express the equivalent in a UML communication diagram?

enter image description here

Edit This is slightly different from How to express loops in Communication Diagrams? because there are two messages in the loop.

I see the link to http://www.smartdraw.com/resources/tutorials/uml-collaboration-diagrams/ which mentions the * for a loop.

Would it be right then to use:

1 * [i=1..5] : hello
2 * [i=1..5] : bye

The trouble I see is that this seems to be ambiguous: is it hello x 5 then bye x 5, or (hello bye) x 5.

like image 773
Fuhrmanator Avatar asked Jan 19 '26 23:01

Fuhrmanator


1 Answers

Try to aggregate them. Introduce these instead:

1 * [i=1..5] : hellobye
1.1 : hello
1.2 : bye
like image 134
eimaiosatanas Avatar answered Jan 23 '26 08:01

eimaiosatanas