- 2070 Magh · 7 marks
Essential components of an activity diagram
Short answer
Essential components of an activity diagram: initial node, actions (rounded rectangles), control flow arrows, decision/merge diamonds with guards, fork/join bars for parallelism, swimlanes for responsibility, object flows, and final node. For a library book issue, actions like scanning card, validating member, checking availability, issuing book, and parallel update/print use decisions and fork-join.
Prepare the list of essential components to be identified in building an activity diagram. Illustrate with an example of your own choice.
An activity diagram models a workflow or the logic of an operation as a flow of activities. The essential components to identify are:
| Component | Notation | Meaning |
|---|---|---|
| Initial node | filled circle | Start of the flow |
| Activity/action | rounded rectangle | A step of work |
| Transition (control flow) | arrow | Order from one action to the next |
| Decision / merge | diamond with guards [ ] | Branch on a condition; bring alternative flows back together |
| Fork / join | thick bar | Start / synchronise parallel flows |
| Final node | filled circle inside a ring (bull's eye) | End of the activity |
| Swimlane (partition) | vertical lanes | Who is responsible |
| Object flow / object node | rectangle | Data passed between actions |
| Signal send/receive | pentagon shapes | Events sent or awaited |
| Note | folded rectangle | Comment |
Steps to build one: (1) identify the activities from the use case or process, (2) identify their order, (3) find decisions and their guards, (4) find the parallel work, (5) assign swimlanes if responsibility matters, (6) add the start and end.
Example: processing a library book issue
(start)
|
[ Scan member card ]
|
< member valid? >
[no] / \ [yes]
[Reject request] [ Scan book ]
| |
| < book available? >
| [no] / \ [yes]
| [Offer reservation] [Issue book]
| | |
| | ======fork======
| | | |
| | [Update record] [Print slip]
| | | |
| | ======join======
| | |
+----------+------(merge)---+
|
(end)
This example shows the initial node, actions, two decisions with guards, a merge, a fork-join for parallel work, and the final node.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Problem statement and UML building blocks · Object Oriented Analysis and Design, chapter 2
- ATM withdrawal sequence diagram · Object Oriented Analysis and Design, chapter 2
- XYZ Marina class diagram · Object Oriented Analysis and Design, chapter 2
- Bottle recycling machine state diagram · Object Oriented Analysis and Design, chapter 2
- Money transfer sequence diagram questions · Object Oriented Analysis and Design, chapter 2
- Event management system summary and class diagram · Object Oriented Analysis and Design, chapter 2
- Essential components of a static relay · Switchgear and Protection, chapter 8 · asked 5×
- Essential components of a DAQ system · Instrumentation II, chapter 5 · asked 3×
- Moisture movement through building components · Building Technology, chapter 1 · asked 7×
- Combined plant components and T-s diagram · Power Plant Equipment, chapter 8 · asked 4×
All Object Oriented Analysis and Design chapter 2 questions →