An Activity in the activity diagram is also known as Activity state. It is used to represent the invocation of operation, a step in an entire business process. Swimlane is a way in which the performed activities can be grouped by the same actor on an Activity diagram. To use swimlanes in an activity diagram, we need to arrange the activity diagram into vertical zones that are separated by the lines. This swimlane diagram places the steps of process within the horizontal or vertical swimlanes of workgroup or department using the metaphor of lanes in the pool. It provides clarity and accountability.
The activity diagram is a type of specific Unified Modeling Language (UML) Diagram that can optionally contain swimlane that means it’s not mandatory for the Activity diagram to contain Swimlane. So, we can say that an activity diagram can be a swimlane diagram. On the other hand, Swimlane is not a part of the term UML.
Let us understand the activity and swimlane diagram with an example.
- Activity Diagram –
It is the essential diagram in Unified Modeling Language (UML) and is also known as object-oriented flowchart. It simply describes the positive and productive features or parts of a system. It is basically used for representing the flow of interaction from one activity to another in the form of graphical representation. It is described as an operation of the system and also used to capture the dynamic behavior of the system. Here, activity is referred to as the operation of the system.
It allows us to create and make an event as an activity that usually contains numerous collections of nodes joint by edges. These diagrams are generally used to model Use cases, Classes, Interfaces, Components, Collaborations, etc. For understanding the diagram, we need to read it from top to bottom. Using an activity diagram, we can visually represent the workflows.
Structure of the Activity Diagram :
For example, below is an Activity Diagram for Reserving a Ticket.
- Swimlane Diagram :
It is also a graphical representation of the System. Swimlane diagrams are also known as the Rummler-Brache diagram or a cross-functional diagram. Swimlanes are sometimes called functional bands. It simply describes who is responsible for the activities being performed in the activity diagram and how they are responsible. The activity diagram only represents the activities being performed, but Swimlane describes who does what in a process or activity performed.
In the Swimlane diagram, the activity diagram is divided according to the class responsible for working or performing out these activities. It simply shows the connection and strong communication between these lanes and is used to highlight waste, redundancy, and inefficiency in a process of an activity or program.
For example, below is a Swimlane diagram for reserving a ticket.
Essential key-points of all the above diagrams :
- Fork –
It is used to represent the multiple parallel flows.
- Branches –
It allow the parallel flow within activities.
- Merge –
It brings together or combines together multiple branches.
- Join –
It is used to control and synchronize various parallel flows.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.My Personal Notes arrow_drop_up
- Short note on Risk Assessment and Risk Mitigation
- Short note on Reactive and Proactive RCA
- Short note on Behavioral Model
- Short note on Data Dictionary
- Short Note on Function-Oriented Metrics
- Short Note on Size-Oriented Metrics
- Short note on Project Scheduling
- Short Note on Data Visualization
- Short Note on Work Breakdown Structure (WBS)
- Short Note on Barrier Analysis
- Short Note on Bathtub Curve
- Activity Identification approaches in Software Engineering
- Note on Checkpoints of the Process
- Types and Components of Data Flow Diagram (DFD)
- What is DFD(Data Flow Diagram)?
- Rules for Data Flow Diagram
- Use Case Diagram for Library Management System
- Use Case Diagram for Bank ATM System
- Component Based Diagram
- Class Diagram for Library Management System
- Fork –