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

Drawing Sequence Diagram with Resource-Centric Interface

A sequence diagram shows the sequence of actions that occur in a system. It is simply used to illustrate the dynamic view of a system by showing the objects’ interaction with message transmissions between objects.

With the Resource-centric interface, you can conveniently create another object from the current object you are working on working on, without having to jump to another screen or doing too much mouse movement.

The resource-centric interface also helps you focus on the available step-by step interactions from an object to another and also prevents you from drawing invalid interactions.

Watch Demo

Drawing Sequence Diagram using Resource-centric

  1. On the menu, select File > New Diagram > UML Diagrams > Sequence Diagram to create a new sequence diagram.
    draw_sequence_diagram_with_resource_centric-1.jpg

  2. Draw a lifeline by choosing the LifeLine icon on the diagram palette then click on the diagram.
    draw_sequence_diagram_with_resource_centric-2.jpg

  3. Mouse over the lifeline, the smart resource is visible. By default it shows the recently selected resource.
    draw_sequence_diagram_with_resource_centric-3.jpg

  4. Either click and drag on the smart resource to empty space to create a new shape.
    (For example creating a new lifeline by clicking and dragging the Message → LifeLine resource to an empty space).
    draw_sequence_diagram_with_resource_centric-4.jpg

    OR click and drag on the smart resource to an existing lifeline/actor
    (For example creating a new message by clicking and dragging the Message → LifeLine resource of the Withdraw Money lifeline to the ATM Machine lifeline).
    draw_sequence_diagram_with_resource_centric-5.jpg

  5. You can also click on the recent smart resource to expand the list of available resources. Then follow step 3 to create/connect shape with a selected resource. The selected resource will become the default resource of the smart resource (only within this application session and for this diagram).
    draw_sequence_diagram_with_resource_centric-6.jpg draw_sequence_diagram_with_resource_centric-7.jpg

LifeLine Smart Resource
Icon Description
message.jpg Message → LifeLine
durationmessage.jpg Duration Message → LifeLine
createmessage.jpg Create Message → LifeLine
selfmessage.jpg Self Message → LifeLine
recursivemessage.jpg Recursive Message → LifeLine

Actor Smart Resource
Icon Description
message.jpg Message → LifeLine
durationmessage.jpg Duration Message → LifeLine
createmessage.jpg Create Message → LifeLine
selfmessage.jpg Self Message → LifeLine

6. If click once on the Message/Duration/Create message resource with no dragging, a list will appear for selecting the target lifeline/actors
(For example click once on the Message → LifeLine resource)
draw_sequence_diagram_with_resource_centric-7.jpg

7. Mouse over a message, you will see the Message Type resource to change the message type (Unspecified, Call, Send, Return, etc.),
draw_sequence_diagram_with_resource_centric-8.jpg

and the Create Return Message resource for creating a return message.
draw_sequence_diagram_with_resource_centric-9.jpg

8. You can also select 2 or more lifelines, click on Create Combined Fragment for Selected LifeLines to create a combined fragment for the selection.
draw_sequence_diagram_with_resource_centric-10.jpg

9. Mouse over a Frame shape, the Create Gate resource can be used to create a Gate shape.
draw_sequence_diagram_with_resource_centric-11.jpg

10. Mouse over the Gate shape, the Message → LifeLine resource can be dragged to the new area to create a new message from gate to a new lifeline.
draw_sequence_diagram_with_resource_centric-12.jpg

Smart Resources for Elements on the Sequence Diagram

LifeLine Smart Resource
Icon Description
message.jpg Message → LifeLine
durationmessage.jpg Duration Message → LifeLine
createmessage.jpg Create Message → LifeLine
selfmessage.jpg Self Message → LifeLine
recursivemessage.jpg Recursive Message → LifeLine

Actor Smart Resource
Icon Description
message.jpg Message → LifeLine
durationmessage.jpg Duration Message → LifeLine
createmessage.jpg Create Message → LifeLine
selfmessage.jpg Self Message → LifeLine

Message Smart Resource
Icon Description
messagetype.jpg Message Type
returnmessage.jpg Create Return Message

Frame Smart Resource
Icon Description
gate.jpg Create Gate

Gate Smart Resource
Icon Description
message.jpg Message → LifeLine

Related Articles

Resources

 
 
Last modified: 2006/01/18 05:10
 
 
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