0% found this document useful (0 votes)
30 views2 pages

Lab5 SE

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

Lab5 SE

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Sequence Diagram(Gmail Login System)

A sequence diagram for a Gmail login system would involve several objects and messages being sent back and forth.
The user is the first active object and sends credentials to the login page. The login page then sends those credentials
to the database that stores user information. The database responds, and the login page sends a reply message to
the user, indicating whether the login was successful or not.

Here is a step-by-step breakdown of the sequence diagram for a Gmail login system:
1. The user enters their credentials (username/email and password) on the login page.
2. The login page sends a message to the database with the user login data to be checked.
3. The database creates a self-message as it validates the user login data.
4. If the login data is correct, the database sends a message that the user login has been accepted.
5. The login page sends a self-message to instruct itself to send a reply message to the user that login was
successful.
6. If the login data is incorrect, the database sends a message that the user login has been rejected.
7. The login page sends a message to clear the password field so that the user can try again.
The sequence diagram would depict these objects and messages, showing the interactions between the user, login
page, and database. The diagram would also show the order in which the messages are sent and received, as well as
any conditions or loops that may occur during the login process
Sequence Diagram(E-Com Order Booking Site)
A sequence diagram for an e-commerce order booking system would involve several objects and messages being sent
back and forth. The user is the first active object and sends a message to the order booking system to place an order.
The order booking system then sends messages to the inventory system to check for product availability, and to the
payment system to process the payment. The inventory and payment systems send messages back to the order
booking system with the results of their checks. The order booking system sends a message to the shipping system to
deliver the order, and the shipping system sends a message back to the order booking system with the delivery
status. Finally, the order booking system sends a message to the user with the order confirmation and delivery status.

Here's a step-by-step breakdown of the sequence diagram for an e-commerce order booking system:

1. The user sends a message to the order booking system to place an order.
2. The order booking system sends a message to the inventory system to check for product availability.
3. The inventory system sends a message back to the order booking system with the product availability status.
4. The order booking system sends a message to the payment system to process the payment.
5. The payment system sends a message back to the order booking system with the payment status.
6. The order booking system sends a message to the shipping system to deliver the order.
7. The shipping system sends a message back to the order booking system with the delivery status.
8. The order booking system sends a message to the user with the order confirmation and delivery status.
The sequence diagram would depict these objects and messages, showing the interactions between the user, order
booking system, inventory system, payment system, and shipping system. The diagram would also show the order in
which the messages are sent and received, as well as any conditions or loops that may occur during the order
booking process.

You might also like