Sequence diagrams are a design tool for modeling the dynamic interaction between elements in a software system. They can be used at different levels of abstraction, but are most often used for modeling interactions at the object to object and method call level. Without an understanding of these dynamic interactions, you do not really know how the software works. Modeling system features and operations with sequence diagrams provide this information as both a design and documentation tool.
Learning Outcomes
Describe the UML notations used in sequence diagrams.
Explain the role that sequence diagrams have in design modeling.
Model the dynamic interactions for a software system feature using a sequence diagram.
Study Resources
For your study of this topic, use these resources.
WebSequenceDiagrams.com, a tool that generates sequence diagrams with a hand-drawn look from text descriptions. It is not good for formal documentation.
Sequence diagram - quiz: After watching one of the video lessons given above, reading the IBM Developer Works and Microsoft web articles, answer the questions in the 5-minute quiz, Sequence diagrams, in the myCourses Quiz area before the time specified on the schedule for your course section.
In-Class Exercises
Sequence diagram - team: Working in your project team, create a sequence diagram that captures the dynamic interaction for a Customer adding an item to their shopping cart based on a user story in your term project:
Start the sequence from the Angular application.
By the time indicated on the schedule for your class section, submit the sequence diagram to the Sequence diagram - team myCourses Assignments folder.
It will be acceptable to draw the diagram on a whiteboard and take a photo of it for your submission.
If you prefer, you can use a drawing tool instead which has the advantage that you will have a diagram suitable for insertion into your final design documentation.
If you have additional time, select a second feature to model for a bonus exercise point. A second diagram should be done using a drawing tool.