Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show asynchronous operations on UML Activity diagram

I am about to draw/document for some client-server connection establishing code to better understand it. There are several operations that are done asynchronously in separate threads (connecting threads, data receiving threads, etc).

Should I show them on separate diagrams? I would prefer to have it on a single diagram to grasp overall view but don't know how to represent it on Activity diagram.

like image 739
Marcin Gil Avatar asked Jan 06 '09 09:01

Marcin Gil


2 Answers

I'm not sure if there's a correct way of doing this, I developed my own method by testing different strategies until I came up with something that worked for my own mindset.

This is how I do it:

  • Threads == Swimlanes
  • Thread Operations == Action/Activity nodes
  • Critical sections == Object nodes
  • Thread creation == Fork nodes
like image 191
sharkin Avatar answered Oct 04 '22 03:10

sharkin


Instead of using full arrowheads you can use half arrowheads to show an asynchronous message call. As shown

alt text

like image 37
Raminder Avatar answered Oct 04 '22 05:10

Raminder