ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Object Oriented Analysis and Design
    COMP3150
    Progress0 / 17 topics
    Topics
    1. Principles of Object Technology2. OOP Review3. Principles of Modeling4. OOA&D Overview5. OO Development Process6. Requirements Engineering: Use Cases and Prototyping7. Class Models8. Interaction Diagrams9. Verification and Validation10. Architectural and Detailed Design11. Class Diagrams12. State Machines and Diagrams13. Implementation and Package Diagrams14. Activity Diagrams15. OO Patterns16. Object Diagram, Component Diagram, and Deployment Diagram17. Network Diagram
    COMP3150›Activity Diagrams
    Object Oriented Analysis and DesignTopic 14 of 17

    Activity Diagrams

    3 minread
    464words
    Beginnerlevel

    📘 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


    🔸 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 load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time3 min
      Word count464
      Code examples0
      DifficultyBeginner