13 activity diagrams.pptx
TRANSCRIPT
![Page 1: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/1.jpg)
UML Activity Diagrams
![Page 2: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/2.jpg)
If a use case gets too complex, we use activity diagrams to clarify things
![Page 3: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/3.jpg)
Activity diagrams
are flowcharts
![Page 4: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/4.jpg)
Activity diagrams are UML
![Page 5: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/5.jpg)
Activities are rectangles with rounded corners
Activity-A Activity-B Transition
![Page 6: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/6.jpg)
Transitions are shown by arrows ¡ Sometimes the transition may have text to
explain what is happening
Activity-A Activity-B Transition
![Page 7: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/7.jpg)
Start and Finish ¡ A start is shown by a filled in circle ¡ A finish is a circle containing a filled in circle
Initial Activity End Activity Transition Start Stop
![Page 8: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/8.jpg)
Decisions are denoted by diamonds
Activity-A
Outcome B
Outcome A Decision
![Page 9: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/9.jpg)
Guard conditions block the flow if some condition is not met ¡ They "guard" the door
![Page 10: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/10.jpg)
Synchronization bars ¡ Allow for the branching and joining of
synchronous activities
Activity-A
Activity-B Activity-C
¡ Synchronous means that two or more things are happening simultaneously
![Page 11: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/11.jpg)
Swimlanes show who is responsible for what ¡ Swimlanes are optional
![Page 12: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/12.jpg)
Example
Let's do an example together
![Page 13: 13 activity diagrams.pptx](https://reader033.vdocuments.us/reader033/viewer/2022052823/55583cf5d8b42acb078b4cbf/html5/thumbnails/13.jpg)
Conclusion ¡ When we have a complex use case, UML activity
diagrams can clarify things ¡ They are essentially tightly-defines flowcharts ¡ They use activities, transitions, decisions, guard
conditions, and synchronization bars