ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP3150Activity Diagrams
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP3150

    Object Oriented Analysis and Design

    Progress0 / 17 done
    Topics17
    1Principles of Object Technology2OOP Review3Principles of Modeling4OOA&D Overview5OO Development Process
    6Use Cases and Prototyping7Class Models8Interaction Diagrams9Verification and Validation10Architectural and Detailed Design11Class Diagrams12State Machines and Diagrams13Implementation and Package Diagrams14Activity Diagrams15OO Patterns16Object Diagram, Component Diagram, and Deployment Diagram17Network Diagram
    3 min read
    Topic 14 of 17
    Topic Study Note Illustration
    14

    Activity Diagrams

    An Activity Diagram is a UML behavioral diagram that shows the flow of activities or actions in a system .

    πŸ“˜ Activity Diagrams (OOAD – UML)


    πŸ”Ή 1. Definition

    An Activity Diagram is a UML behavioral diagram that shows the flow of activities or actions in a system.

    πŸ‘‰ Simple idea: It represents step-by-step workflow of a process, like a flowchart but more powerful in OOAD.


    πŸ”Ή 2. Purpose of Activity Diagrams

    • Show workflow of a system
    • Model business processes
    • Describe step-by-step execution
    • Help in understanding system behavior
    • Useful for analysis and design

    πŸ”Ή 3. Key Idea ⭐

    • Focuses on activities (actions/tasks)
    • Shows control flow and decision making
    • Can represent both simple and complex processes

    πŸ”Ή 4. Basic Notation

    Symbol Meaning
    ● Initial state (Start)
    β—Ž Final state (End)
    β–­ Activity (Action)
    β†’ Flow (Transition)
    β—‡ Decision (if/else)
    Fork/Join (parallel processing)

    πŸ”Ή 5. Components of Activity Diagram

    Activity diagram
    Visual ReferenceActivity
    Wikipedia

    πŸ”Έ 5.1 Activity

    • Represents a task or action Example: Login, Process Payment

    πŸ”Έ 5.2 Transition (Flow)

    • Shows movement from one activity to another

    πŸ”Έ 5.3 Decision Node

    • Represents if-else condition

    Example:

    Login successful? β†’ Yes / No
    

    πŸ”Έ 5.4 Initial Node

    • Starting point (●)

    πŸ”Έ 5.5 Final Node

    • Ending point (β—Ž)

    πŸ”Έ 5.6 Fork and Join

    • Used for parallel activities

    πŸ”Ή 6. Example (ATM System) ⭐


    πŸ”Ή Steps:

    1. Insert Card
    2. Enter PIN
    3. Verify PIN
    4. Choose Transaction
    5. Withdraw / Check Balance
    6. End Transaction

    πŸ”Ή Activity Flow:

    ● β†’ Insert Card β†’ Enter PIN β†’ Verify PIN
              ↓
         [Decision]
       Yes        No
       ↓           ↓
    Transaction   Exit
       ↓
    β—Ž
    

    πŸ”Ή 7. Example (Online Shopping)


    πŸ”Ή Flow:

    1. Login
    2. Search Product
    3. Add to Cart
    4. Checkout
    5. Payment
    6. Order Confirmed

    πŸ”Ή 8. Types of Activity Nodes


    πŸ”Έ 8.1 Simple Activity

    • Single step action

    πŸ”Έ 8.2 Composite Activity

    • Group of activities

    πŸ”Έ 8.3 Concurrent Activity

    • Multiple tasks happen simultaneously

    πŸ”Ή 9. Activity Diagram vs Flowchart

    Feature Activity Diagram Flowchart
    Standard UML standard General tool
    Focus Object-oriented system Simple process
    Parallelism Supported Limited
    Usage Software design General logic

    πŸ”Ή 10. Advantages of Activity Diagrams

    • Easy to understand workflows
    • Models complex processes clearly
    • Supports parallel processing
    • Helps in system analysis
    • Useful for business modeling

    πŸ”Ή 11. Important Rules / Guidelines

    • Start with initial node (●)
    • End with final node (β—Ž)
    • Use clear and simple activities
    • Avoid too many complex branches
    • Ensure logical flow

    πŸ”Ή 12. Where Activity Diagrams are Used

    • ATM systems
    • Online shopping
    • Banking systems
    • Login processes
    • Order processing systems

    πŸ”Ή 13. Likely Exam Questions

    1. Define activity diagram.
    2. Explain components of activity diagram.
    3. Draw activity diagram of ATM system.
    4. Difference between activity diagram and flowchart.
    5. What is a decision node?
    6. Explain fork and join.
    7. Advantages of activity diagrams.
    8. Explain login process using activity diagram.
    9. What are initial and final nodes?
    10. Role of activity diagrams in OOAD.

    πŸ”Ή 14. Quick Revision Summary 🧠

    • Activity Diagram = Workflow of system

    • Shows:

      • Activities
      • Decisions
      • Flow of control
      • Parallel actions

    πŸ‘‰ Trick to Remember: "ADF" β†’ Activity, Decision, Flow


    ← Previous topic 13
    Implementation and Package Diagrams
    Next topic 15 β†’
    OO Patterns

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    3mremaining
    468words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Object Oriented Analysis and Design