UML Diagrams
Sequence Diagram
O/R Mapping
Mac OS X
Tips and Tricks
VP Suite
Change Log

Synchronization between System Level Sequence Diagram and Flow of Event

Sequence diagram, the most common kind of interaction diagram, focuses on the Message interchange between a number of Lifelines. System level sequence diagram is the high-level of sequence diagram which illustrates the sequence of interactions between the Use Case and the Actor who is the user of the system.

The system level sequence diagram can be transformed from the flow of events in the use case description. The VP’s products, including VP-UML and SDE, support not only the generation of system level sequence diagram based on the flow of events, but also the synchronization between the sequence diagram and flow of events.

Generating System Level Sequence Diagram from Flow of Events

Defining the flow of events is the prerequisite for generating the system level sequence diagram.

Defining Flow of Events

Let’s assume the following use case diagram is created.
sync_with_flow_of_event-1.jpg

The following steps show how to define the flow of events of the Withdraw Money use case.

  1. Right-click on the Withdraw Money use case, select Use Case Details... from the pop-up menu.
    sync_with_flow_of_event-2.jpg

    The New Use Case Description dialog box is shown.
  2. Select Main for the Template type of the use case description. The Use Case Details editor is then loaded automatically.
    sync_with_flow_of_event-3.jpg

  3. On the Use Case Details - Withdraw Money editor, enter the Brief Description, Preconditions and Post-conditions as shown below.
    sync_with_flow_of_event-4.jpg

  4. By identifying the interactions between the actor and the system, enter the first flow of event to the Actor Input column as insert card.
    sync_with_flow_of_event-5.jpg

  5. Right-click on the item of flow of events, select Add Item from the pop-up menu to add a new item to the flow of event. Alternatively, press Ctrl + Enter to add a new item.
    sync_with_flow_of_event-6.jpg

  6. Enter request for PIN to the System Response as the second flow of event.
    sync_with_flow_of_event-7.jpg

  7. By repeating the addition of new item to the flow of event, the flow of events is completed as shown below.
    sync_with_flow_of_event-8.jpg

Generating Sequence Diagram

Once the flow of events has been prepared, you can generate the system level sequence diagram accordingly. To generate the system level sequence diagram:

  1. Right-click on the Use Case Details - Withdraw Money editor, select Generate Sequence Diagram from the pop-up menu.
    sync_with_flow_of_event-9.jpg

    The system level sequence diagram is generated automatically.
    sync_with_flow_of_event-10.jpg

Synchronizing Sequence Diagram to Flow of Events

In some cases, modification to the system level sequence diagram is needed after generated from the flow of events. You can directly modify the system level sequence diagram and synchronize to the flow of events.

Note: Synchronization from sequence diagram to flow of events only supports in the sequence diagram generated from the flow of events. On the contrary, create a system level sequence diagram manually cannot generate the flow of events.

Let’s assume the system level sequence diagram is modified by adding the messages 6, 9 and 10 shown below.
sync_with_flow_of_event-11.jpg

To synchronize the modified system level sequence diagram to the flow of events:

  1. Right-click on the sequence diagram, select Synchronize to Flow of Events from the pop-up menu.
    sync_with_flow_of_event-12.jpg

  2. The Confirm Overwrite dialog box shows asking you to confirm overwriting the flow of events of use case details by the modified sequence diagram. Click Overwrite to accept overwriting the flow of events.
    sync_with_flow_of_event-13.jpg

    WARNING: By clicking the Overwrite button, the original flow of events is erased and overwritten by the messages on the sequence diagram.
    The flow of events is updated automatically.
    sync_with_flow_of_event-14.jpg

Related Articles

Resources

 
 
Last modified: 2006/01/09 04:25
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory