SlideShare a Scribd company logo
1 of 3
Download to read offline
CSC 340 – Week 10 Tutorial
UML Use Cases and Sequence Diagrams
1. Case study: Online Shopping
Paragraphs Corporation sells books and CDs using through online shopping. The customer
adds items to her shopping cart. She may remove items or go to the check-out to make her
purchases at any time. The customer reviews her purchases, chooses a payment method and
pays. A sales employee at Paragraphs Corporation gets the order and purchase confirmation
from the system, and sends the electronic order to the warehouse. The warehouse employee
updates the order status. The customer may check the order status.
2. UML Use Case Diagram
Each Use Case is:
• a pattern of behavior that the new system is required to exhibit
• a sequence of related actions performed by an actor and the system via a dialogue.
An actor is:
• anything that needs to interact with the system:
o a person
o a role that different people may play
o another (external) system.
A Use Case Diagram is a visual representation of actors together with use cases.
Additemtocart
Reviewcontentsof
cart
Removeitemfrom
cartPurchasecontents
ofcart
Customer
OnlineShoppingSystem
*
*
*
*
Salesperson
Receiveorder
Notifywarehouse
aboutorder
Updateorderstatus
WarehouseEmployee
Verifypayment
«uses»
3. UML Sequence Charts
Sequence diagrams show step-by-step what’s involved in a use case
• Which objects are relevant to the use case
• How those objects participate in the function
Online System
*Add item
Display cart
[cartContents > 0] *Remove item
[cartContents > 0] Purchase items in cart
Receive order
Credit Card Company
Verify payment
Update order
Get order status
Warehouse EmployeeSalespersonCustomer
[payment received] Notify about order

More Related Content

Similar to Tutorial usecases

Onlineshoppingonline shopping
Onlineshoppingonline shoppingOnlineshoppingonline shopping
Onlineshoppingonline shoppingHardik Padhy
 
Online shopping cart system file
Online shopping cart system fileOnline shopping cart system file
Online shopping cart system fileSunil Jaiswal
 
unified modeling language diagrams
unified modeling language diagramsunified modeling language diagrams
unified modeling language diagramsmuhammadali0014
 
Lecture7 use case modeling
Lecture7 use case modelingLecture7 use case modeling
Lecture7 use case modelingShahid Riaz
 
use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptxAqeelAbbas94
 
Super market billing system using webcam
Super market billing system using webcam Super market billing system using webcam
Super market billing system using webcam SahithBeats
 
E-commerce (System Analysis and Design)
E-commerce (System Analysis and Design)E-commerce (System Analysis and Design)
E-commerce (System Analysis and Design)Nazmul Hyder
 
SE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use CasesSE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use CasesAmr E. Mohamed
 
Analysis modeling & scenario based modeling
Analysis modeling &  scenario based modeling Analysis modeling &  scenario based modeling
Analysis modeling & scenario based modeling Benazir Fathima
 
Proposal vertsol
Proposal vertsolProposal vertsol
Proposal vertsoldeep13
 
Use case diagram abc supermarket workshop
Use case diagram abc supermarket workshopUse case diagram abc supermarket workshop
Use case diagram abc supermarket workshopskanduri
 

Similar to Tutorial usecases (20)

Onlineshoppingonline shopping
Onlineshoppingonline shoppingOnlineshoppingonline shopping
Onlineshoppingonline shopping
 
Online shopping cart system file
Online shopping cart system fileOnline shopping cart system file
Online shopping cart system file
 
unified modeling language diagrams
unified modeling language diagramsunified modeling language diagrams
unified modeling language diagrams
 
Lecture7 use case modeling
Lecture7 use case modelingLecture7 use case modeling
Lecture7 use case modeling
 
use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptx
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
Super market billing system using webcam
Super market billing system using webcam Super market billing system using webcam
Super market billing system using webcam
 
E-commerce (System Analysis and Design)
E-commerce (System Analysis and Design)E-commerce (System Analysis and Design)
E-commerce (System Analysis and Design)
 
ATM.pptx
ATM.pptxATM.pptx
ATM.pptx
 
SE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use CasesSE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use Cases
 
Onlineshopping
OnlineshoppingOnlineshopping
Onlineshopping
 
Use case Diagram
Use case DiagramUse case Diagram
Use case Diagram
 
2.1 usecase diagram
2.1 usecase diagram2.1 usecase diagram
2.1 usecase diagram
 
Analysis modeling & scenario based modeling
Analysis modeling &  scenario based modeling Analysis modeling &  scenario based modeling
Analysis modeling & scenario based modeling
 
Proposal vertsol
Proposal vertsolProposal vertsol
Proposal vertsol
 
Lecture05
Lecture05Lecture05
Lecture05
 
Lecture05
Lecture05Lecture05
Lecture05
 
Lecture05
Lecture05Lecture05
Lecture05
 
Lecture05
Lecture05Lecture05
Lecture05
 
Use case diagram abc supermarket workshop
Use case diagram abc supermarket workshopUse case diagram abc supermarket workshop
Use case diagram abc supermarket workshop
 

More from ZUbaria Inayat

Chapter3 part3-cmm-for-cis6516
Chapter3 part3-cmm-for-cis6516Chapter3 part3-cmm-for-cis6516
Chapter3 part3-cmm-for-cis6516ZUbaria Inayat
 
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...ZUbaria Inayat
 
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...ZUbaria Inayat
 
Salesforce tutorial lec 09
Salesforce tutorial lec 09Salesforce tutorial lec 09
Salesforce tutorial lec 09ZUbaria Inayat
 
End term bscs 2016 fall u et pp1 130516
End term bscs 2016 fall u et pp1 130516End term bscs 2016 fall u et pp1 130516
End term bscs 2016 fall u et pp1 130516ZUbaria Inayat
 
End term bsce fall18 26122018
End term bsce fall18 26122018End term bsce fall18 26122018
End term bsce fall18 26122018ZUbaria Inayat
 
A4 montgomery-woodall-six-sigma
A4 montgomery-woodall-six-sigmaA4 montgomery-woodall-six-sigma
A4 montgomery-woodall-six-sigmaZUbaria Inayat
 

More from ZUbaria Inayat (12)

Chapter3 part3-cmm-for-cis6516
Chapter3 part3-cmm-for-cis6516Chapter3 part3-cmm-for-cis6516
Chapter3 part3-cmm-for-cis6516
 
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
 
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
Explainable artificial-intelligence-xai-for-exploring-spatial-variability-of-...
 
QA in RE
QA in REQA in RE
QA in RE
 
SINP requirements
SINP requirementsSINP requirements
SINP requirements
 
Lecture01 0089
Lecture01 0089Lecture01 0089
Lecture01 0089
 
Sample1
Sample1Sample1
Sample1
 
Salesforce tutorial lec 09
Salesforce tutorial lec 09Salesforce tutorial lec 09
Salesforce tutorial lec 09
 
End term
End term End term
End term
 
End term bscs 2016 fall u et pp1 130516
End term bscs 2016 fall u et pp1 130516End term bscs 2016 fall u et pp1 130516
End term bscs 2016 fall u et pp1 130516
 
End term bsce fall18 26122018
End term bsce fall18 26122018End term bsce fall18 26122018
End term bsce fall18 26122018
 
A4 montgomery-woodall-six-sigma
A4 montgomery-woodall-six-sigmaA4 montgomery-woodall-six-sigma
A4 montgomery-woodall-six-sigma
 

Recently uploaded

Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 DelhiCall Girls in Delhi
 
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature SetCreating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature SetDenis Gagné
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMANIlamathiKannappan
 
Best Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in IndiaBest Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in IndiaShree Krishna Exports
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayNZSG
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear RegressionRavindra Nath Shukla
 
GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in managementchhavia330
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdftbatkhuu1
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Tina Ji
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMRavindra Nath Shukla
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth MarketingShawn Pang
 

Recently uploaded (20)

Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
 
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature SetCreating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
Best Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in IndiaBest Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in India
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in management
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdf
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
 
Nepali Escort Girl Kakori \ 9548273370 Indian Call Girls Service Lucknow ₹,9517
Nepali Escort Girl Kakori \ 9548273370 Indian Call Girls Service Lucknow ₹,9517Nepali Escort Girl Kakori \ 9548273370 Indian Call Girls Service Lucknow ₹,9517
Nepali Escort Girl Kakori \ 9548273370 Indian Call Girls Service Lucknow ₹,9517
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSM
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
 

Tutorial usecases

  • 1. CSC 340 – Week 10 Tutorial UML Use Cases and Sequence Diagrams 1. Case study: Online Shopping Paragraphs Corporation sells books and CDs using through online shopping. The customer adds items to her shopping cart. She may remove items or go to the check-out to make her purchases at any time. The customer reviews her purchases, chooses a payment method and pays. A sales employee at Paragraphs Corporation gets the order and purchase confirmation from the system, and sends the electronic order to the warehouse. The warehouse employee updates the order status. The customer may check the order status. 2. UML Use Case Diagram Each Use Case is: • a pattern of behavior that the new system is required to exhibit • a sequence of related actions performed by an actor and the system via a dialogue. An actor is: • anything that needs to interact with the system: o a person o a role that different people may play o another (external) system. A Use Case Diagram is a visual representation of actors together with use cases.
  • 3. 3. UML Sequence Charts Sequence diagrams show step-by-step what’s involved in a use case • Which objects are relevant to the use case • How those objects participate in the function Online System *Add item Display cart [cartContents > 0] *Remove item [cartContents > 0] Purchase items in cart Receive order Credit Card Company Verify payment Update order Get order status Warehouse EmployeeSalespersonCustomer [payment received] Notify about order