Shopping Cart (UML Sequence Diagram)

An example of a UML sequence diagram for shopping cart processing. It shows the user manipulation with a shopping cart in an e-shop.

UML Sequence Diagram for Shopping Cart

A sequence diagram example for a shopping cart processing. The diagram depicts how an e-shop user interacts with a shopping cart, adds, updates, and removes the items.

Lifelines and Actions in Sequence Diagram for Shopping Cart Processing

The diagram includes these lifelines:

  • User - shopper in a e-shop
  • Shopping Cart - a client-side module that handles the items, a user wants to buy
  • Eshop Service - a back-end service on an e-shop server that processes client requests

The process is described using these sequence messages:

  • Add product to the shopping cart
  • Save the shopping cart
  • Remove product from the shopping cart
  • Clear the shopping cart
  • Increase quantity of a product
  • Decrease quantity of a product
  • Confirm the shopping cart
  • Place an order

The diagram contains an alt fragment that splits the sequence to the alternative parts by these conditions:

  • another product needed
  • a product is not needed
  • any product in the list is not needed
  • more pieces are needed
  • less pieces are needed

Shopping Cart Sequence Diagram Example

Shopping Cart (UML Sequence Diagram)
Shopping Cart (UML Sequence Diagram)

Download UML Sequence Diagram for E-shop Shopping Cart

Shopping Cart (UML Sequence Diagram)

New Comment