Activity Diagram of Amazon
Start
The activity begins when the user accesses the Amazon platform. They can be a guest or a registered customer.
User Login / Registration
- If the user is not logged in, they will either log in or register as a new customer.
- If already logged in, the system checks their session validity.
Browse Products
- The user can search for products using filters, categories, or keywords.
- The system displays relevant products based on the search query.
Add to Cart
- The user selects a product and adds it to their shopping cart.
- The system updates the cart with the selected item and shows the updated cart status.
View Cart
- The user can view the cart, modify the quantity of items, remove items, or proceed to checkout.
Proceed to Checkout
- Once the user is satisfied with the items in the cart, they proceed to the checkout page.
Enter Shipping Details
- The user is prompted to provide shipping information (address, delivery preferences, etc.).
Select Payment Method
- The user selects a payment method (credit card, PayPal, etc.).
- The system verifies the payment method and prepares for processing.
Confirm Order
- The user confirms the details of the order (items, shipping address, payment method).
- The system confirms the order and generates an order summary for the user.
Payment Processing
- The system sends the payment details to the payment gateway for processing.
- The payment gateway verifies the transaction and sends back a success or failure response.
Payment Success/Failure
- If the payment is successful, the system updates the order status to “Payment Confirmed.”
- If the payment fails, the user is prompted to retry or select an alternative payment method.
Order Confirmation and Invoice Generation
- Once payment is confirmed, the system generates an invoice and sends an email to the user.
- The order is marked as confirmed, and the shipping process begins.
Order Shipping
- The system notifies the logistics team to process the order for shipment.
- The user receives updates on the shipping status.
End
- The activity ends when the order is delivered to the user.