[Example] Sequence Diagram - Online Shopping

The above diagram is generated from the following code:

title Online shopping @Actor Customer Customer->Website.browse() { BackEnd.loadProducts } Customer->Website.addToCart(p1, p2) { BackEnd.updateCart } Customer->Website.submitOrder(p1, p2) { BackEnd.createOrder } Customer->Website.checkout(paymentInfo) { BackEnd.checkout(paymentInfo) { result = PaymentGateway.processPaymentInfo() updateOrder(result) if (result == success) { DeliverySystem.register() DeliverySystem->Customer: Deliver the order } else { return rejected @return Website->Customer: rejected } } }

What is the Online Shopping Sequence Diagram example?

Sequence diagrams hold notable significance in dynamic modeling as they elucidate the joint operation of a group of objects. They are extensively utilized in conjunction with UML (Unified Modeling Language) to depict a visually homogeneous procedure further employed to design a software system. This particular example models the logic behind a complex process - in this context, online shopping.

At the initial glance, it might seem that a rudimentary checkout flow can be executed with minimal effort. However, even the interactions that seem simplest at the outset necessitate an understanding of backend processes such as payment transaction and address authentication. Incorporate aspects like coupon codes, inventory control, and tracking details, and suddenly, a template becomes indispensable.

Advantages of the Online Shopping Sequence Diagram Example

Enable visualization of interaction among objects and components to finalize a process. Subsequently, delegate, refine, and discern requirements.
Discover opportunities to optimize, thereby minimizing redundancy and conserving resources.
Adapt the template to fit your specific use-case with ease. Not in need of an online shopping diagram? It has versatile applications ranging from food ordering to pet sitter booking.
Incorporate data to personalize your diagram, ensuring that you're fully equipped before you initiate the process.
Collaborate and share with distant colleagues to avail diverse perspective and maintain team cohesiveness.

How to implement the Online Shopping Sequence Diagram template on Confluence

Installation

This add-on must be installed through the Atlassian Universal Plugin Manager (UPM):

  1. Click on Settings on your Confluence Cloud instance

  2. Click Find new apps from the left-hand side of the page

  3. Locate ZenUML Diagrams for Confluence (FREEMIUM) or ZenUML Diagrams and Open API Lite via search

  4. Click Try it free or Get app

Insert the macro

A ZenUML diagram can be created within any Confluence page, provided you have permission to edit the page.

ZenUML can be inserted like any other macro, using the macro browser. Click the drop down menu in the toolbar with the plugin icon, then click on “ZenUML Sequence Diagram”. If “ZenUML Sequence Diagram” is not directly in this menu, click on “Other macros” or “View more” and then enter “zenuml” in the search field at the top right of the dialog.

You can also use the curly bracket shortcut: “/zenuml” or “{zenuml”.

Put the DSL code in the editor:

Click “Save and Go back to Confluence” and you are done!