Object Oriented Analysis & Design Lab # 9: The Objectives of Lab 9 Are To: - Understand and Implement Activity Diagrams
Object Oriented Analysis & Design Lab # 9: The Objectives of Lab 9 Are To: - Understand and Implement Activity Diagrams
Lab # 9
Activity Diagram:
• Activity diagrams are the object-oriented equivalent of flow charts and data-flow diagrams
from structured development.
• Activity diagrams describe the workflow behavior of a system
• The process flows in the system are captured in the activity diagram
• Activity diagram illustrates the dynamic nature of a system by modeling the flow of control
from activity to activity.
Elements of Activity Diagram:
Exercise
Task 1: Draw the following business process model as an activity diagram with or without
swimlanes.
Model: The business process of meeting a new client
1. A salesperson calls the client and sets up an appointment.
2. If the appointment is onsite(in the consulting firm's office), corporate technicians prepare the
conference room for a presentation
3. If the appointment is offsite(at the client's office), a consultant prepares a presentation on a
laptop.
4. The consultant and the salesperson meet with the client at the agreed-upon location and time
5. The salesperson follows up with a letter
6. If the meeting has resulted in a statement of a problem, the consultant creates a proposal and
sends it to the client.
Task 2: Draw an activity diagram for the following problem: Appointment system for doctor
office.
1. A patient came to office, the scheduler gets patient info.
2. If the patient is new the scheduler make new
3. If the patient is new the scheduler makes new patient record.
4. The scheduler display list of possible appointments to patient.
5. Patient chooses new appointments, modify appointments or cancel his appointments.
6. Patient makes payment.
Task 3: Draw a UML activity diagram for the enroll in University scenario below covering the
steps 1-14.
1. An applicant wants to enroll in the university.
2. The applicant hands a filled out copy of University Application Form to the registrar.
3. The registrar clicks on the Create Student icon.
4. The system displays Create Student Screen.
5. The registrar inputs the name, address, and phone number of the applicant.
6. The system checks whether the applicant is on the applicants list and whether they already
exist within the system.
7. If the student is on the applicants list but not already on the system, then a record is created.
8. The student enrolls in courses.
9. The system calculates the required initial payment.
10. The system displays Fee Summary Screen.
11. The student pays the initial fee.
12. The system prints a receipt.
13. The registrar validates and gives the student the receipt.
14. The use case ends.