Communication Diagrams Examples
Here we provide some examples of communication diagrams:
An example of communication diagram for Online Bookshop. Web customer (depicted as actor) can search, view and buy books.
Communication starts with 1 *: find_books() - iterative message which could be repeated some unspecified number of times. Client searches inventory of books, and if he/she is interested in some book, he/she can view description of the book (1.2 [interested]: view_book()). If client decides to buy, he/she can add book to the shopping cart - 1.3 [decided to buy]: add_to_cart().
Checkout includes getting list of books from shopping cart, creating order, and updating inventory, if order was completed.
An example of communication diagram for online bookshop