activity diagram - people.utm.my se/activity-diagram.pdf · activity diagram • activity diagrams...
TRANSCRIPT
![Page 1: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/1.jpg)
Activity Diagram
• Activity diagrams illustrate the flow of functionality in a system.
• used in business modeling to show the business workflow.
• They may be used in requirements gathering to illustrate the flow
of events through a use case.
• These diagrams define where the workflow starts, where it ends,
what activities occur during the workflow, and in what order the
activities occur.
• An activity is a task that is performed during the workflow.
![Page 2: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/2.jpg)
1. Swimlanes
• determine which object is responsible for which activity.
• To partition the activity states on an activity diagram intogroups
– each group representing the business organization
responsible for those activities
– each group is called a swimlane
• Each swimlane is divided from its neighbor by a vertical solid
line
Activity Diagram Notations
![Page 3: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/3.jpg)
Each swimlane has a name unique within its diagram
Each swimlane may represent some real-world entity
Each swimlane may be implemented by one or more classes
Every activity belongs to exactly one swimlane, but transitions
may cross lanes
Activity Diagram Notations
![Page 4: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/4.jpg)
Object 1 Object 2 Object 3
Swimlane SwimlaneSwimlane
Swimlane Sample
![Page 5: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/5.jpg)
Start / Stop Marker
Start Marker Stop Marker
![Page 6: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/6.jpg)
A single transition comes out of each activity, connecting it to the next activity.
Symbol :
A transition may branch into two or more mutually exclusive transitions.
Activity - Transition
![Page 7: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/7.jpg)
Action nodes: executable activity nodes; the execution of an action represents some transformations or processes in the modeled system.
Symbol :
Activity - Transition
![Page 8: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/8.jpg)
A branch specifies alternate paths taken based on someBoolean expression
A branch may have one incoming transition and two ormore outgoing ones
Guard expressions (inside [ ]) label the transitionscoming out of a branch.
Symbol :
Control Nodes - decision nodes (Branching)
Guard exp(satisfied)
Guard exp(unsatisfied)
![Page 9: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/9.jpg)
• Fork nodes split flows into multiple concurrent flows
• A fork may have one incoming transitions and two or more outgoing
transitions
– each transition represents an independent flow of control
– conceptually, the activities of each of outgoing transitions are
concurrent
– either truly concurrent (multiple nodes)
– or sequential yet interleaved (one node)
Symbol :
Control Nodes – fork nodes
![Page 10: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/10.jpg)
• Join nodes synchronize multiple flows
• A join may have two or more incoming transitions and one outgoing
transition
– above the join, the activities associated with each of these paths
continues in parallel
– at the join, the concurrent flows synchronize
– each waits until all incoming flows have reached the join, at which point one
flow of control continues on below the join
• Symbol:
Control Nodes – join nodes
![Page 11: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/11.jpg)
Withdraw money from a bank account through an ATM.
Example
![Page 12: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/12.jpg)
![Page 13: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/13.jpg)
1. Select a package in your project browser
2. Create a package named as Activity
3. Click on “new diagram” icon
4. Select UML Behavioral
5. From the diagram types, select “Activity”
6. Press ‘OK’ button
Activity Diagram in EA
![Page 14: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/14.jpg)
2
3
4
56
![Page 15: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/15.jpg)
Double click on Activity Diagram
Activity Diagram in EA
![Page 16: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/16.jpg)
To add activity nodes and relations click on each node and then click on view diagram page.
Activity Diagram in EA
Activity Nodes
Relationships
![Page 17: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/17.jpg)
After adding each node ,
select an appropriate
name for the node
from the properties page.
Activity Diagram in EA
Select a name
press
![Page 18: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/18.jpg)
To add the relationship just drag from the source node and then drop in destination node.
Activity Diagram in EA
![Page 19: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/19.jpg)
Weather Station : View Weather Data use case
Complete Example
![Page 20: Activity Diagram - people.utm.my SE/Activity-Diagram.pdf · Activity Diagram • Activity diagrams illustrate the flow of functionality in a system. • used in business modeling](https://reader030.vdocuments.site/reader030/viewer/2022020217/5d488fa288c993047d8b6f06/html5/thumbnails/20.jpg)