tags:

views:

1377

answers:

2

Hey everyone,

I am trying to design an activity diagram (UML) for a networked tic tac toe game that I developed, with sockets. I am using activity partitions (swimlanes). So, there is three partitions: Client1, Server, and Client2.

The diagram is looking good, except I do not know how to represent loop structures.

If you look at this link: activity diagram, and look at the last diagram on the page (Partition), that is the type of activity diagram that I am working with.

Does anyone know how I can represent loops? Thanks!

+2  A: 

Look further down the page you link to for Expansion Region. Use one with the iterative keyword.

Eric J.
That caught my eye, but I am unsure of how to use that. Do you know of any other example diagrams that uses this?
behrk2
I don't have anything non-proprietary that I could show at the moment.
Eric J.
+1  A: 

Maybe I'm missing something but why not just using the exit flow of the last activity in the loop as input flow for the first activity in the loop (with a guard condition to finish the loop when appropriate)

Jordi Cabot