Sequence Diagram (UML 2.0)

UML sequence diagrams model the flow of logic within your system in a visual manner, enabling you both to document and validate your logic, and are commonly used for both analysis and design purposes.  Sequence diagrams are the most popular UML artifact for dynamic modeling, which focuses on identifying the behavior within your system. Other dynamic modeling techniques include activity diagramming, communication diagramming, timing diagramming, and interaction overview diagramming. Sequence diagrams, along with class diagrams and physical data models are in my opinion the most important design-level models for modern business application development.     

Sequence diagrams are typically used to model:
Usage scenarios.  A usage scenario is a description of a potential way your system is used. The logic of a usage scenario may be part of a use case, perhaps an alternate course. It may also be one entire pass through a use case, such as the logic described by the basic course of action or a portion of the basic course of action, plus one or more alternate scenarios. The logic of a usage scenario may also be a pass through the logic contained in several use cases. For example, a student enrolls in the university, and then immediately enrolls in three seminars.

    The logic of methods.   Sequence diagrams can be used to explore the logic of a complex operation, function, or procedure.  One way to think of sequence diagrams, particularly highly detailed diagrams, is as visual object code.

    The logic of services.  A service is effectively a high-level method, often one that can be invoked by a wide variety of clients.  This includes web-services as well as business transactions implemented by a variety of technologies such as CICS/COBOL or CORBA-compliant object request brokers (ORBs).

Let’s start with three simple examples.  Figure 3 shows the logic for how to enroll in a seminar.  I will often develop a system-level sequence diagram with my stakeholders to help to both visualize and validate the logic of a usage scenario.  It also helps me to identify significant methods/services, such as checking to see if the applicant already exists as a student, which my system must support

taken from : agilemodeling.com June 18,12

Popular posts from this blog

Introduction to Use Case Diagram - Case study: Facebook

Kenapa tidak berkurban?

Sequential Search