No more waste of time in using MS visio or Rational Rose ,dragging the lines,moving the text boxes etc.
All you need is to give is a very simple instruction to get the diagram ready in seconds ;-)
Go to http://www.websequencediagrams.com/
Type in a code like below :
From eMagics |
And then click Draw .You will get Sequence diagram like below ready in seconds :)
![]() |
From eMagics |
Moreover it provides the same diagram in various formats you wish.
Rational Rose look:
![]() |
From eMagics |
Learn these simple instructions and save your time ;-)
Instructions and Examples :
Lifeline Activation and Destruction
Use the activate and deactivate keywords to denote object activation. While activated, the participant's lifeline will be highlighted. The activate/deactivate keywords will apply to the previous signal.
You can use the destroy keyword to destroy a participant. The participant's lifeline will end at the previous signal.
User->A: DoWork
activate A
A->B: <
activate B
B->C: DoWork
activate C
C-->B: WorkDone
destroy C
B-->A: RequestCreated
deactivate B
A->User: Done
![]() |
From eMagics |
Changing the order of participants
If you want to participants to be shown in a different order than they are used, declare them first using the participant keyword. You can also rename them this way to save typing.
participant Bob
participant Alice
participant "I have a really\nlong name" as L
Alice->Bob: Authentication Request
Bob->Alice: Authentication Response
Bob->L: Log transaction
![]() |
From eMagics |
Grouping signals together
You can group signals together using the alt/else, opt, and loop keywords. All of them can take a text description that will be displayed in the group header. Use the end keyword to signal the end of a group. The groups may be nested to any depth.
Alice->Bob: Authentication Request
alt successful case
Bob->Alice: Authentication Accepted
else some kind of failure
Bob->Alice: Authentication Failure
opt
loop 1000 times
Alice->Bob: DNS Attack
end
end
else Another type of failure
Bob->Alice: Please repeat
end
![]() |
From eMagics |
Notes in the diagram
You can add notes to your diagram. Notes can be placed to the left of a participant or to the right of a participant. In addition, you can centre a note over one or more participants.
participant Alice
participant Bob
note left of Alice
This is displayed
left of Alice.
end note
note right of Alice: This is displayed right of Alice.
note over Alice: This is displayed over Alice.
note over Alice, Bob: This is displayed over Bob and Alice.
![]() |
From eMagics |
Source : http://www.websequencediagrams.com/examples.html
Thanks to websequencediagrams.
3 comments:
If anybody knows anyother free and easy to use tools for drawing UML.Please do comment.
Thanks for the mention of this... I never saw it beofre and it saved me a lot of time.
What about state charts? (Very useful in realtime programming)