Quick Web Sequence Diagrams
Want to create a sequence diagram and don't want to spend more than 5 minutes on it ? In the past when I have used Visio I have spent 20+ minutes tweaking boxes and lines lengths.
This web site http://www.websequencediagrams.com/ uses a notation to draw UML diagrams.

The site is very easy to use. By clicking on the example on the right side it inserts the template into text area. The diagrams are basic and it --does-- discourage lots of tweaking of box sizes and line lengths that are just a waste when you have a job to do. Its also easy to use your favorite text editor to clone sections of the UML and rename them for repetitive work flows.
Example:
Browser->ActionServlet: Authentication Request
activate ActionServlet
note right of ActionServlet: Dispatches to custom actions.
ActionServlet-->Browser: Authentication Response
deactivate ActionServlet
Produces:

Want to produce entities with multiple lines of text ?
Just add a '\n' in the text:
Browser->ActionServlet \nController: Authentication Request
activate ActionServlet \nController
note right of ActionServlet \nController: Dispatches to custom actions.
ActionServlet \nController-->Browser: Authentication Response
deactivate ActionServlet \nController

There may be an easier way but I haven't read the documentation yet.
There are even several predefined styles that can be selected by a simple combobox:

You can also predefine each of the entities ahead of time for complex sequence flows:
entity User
entity Computer
Browser->ActionServlet: Authentication Request
activate ActionServlet
note right of ActionServlet: Dispatches to custom actions.
ActionServlet-->Browser: Authentication Response
deactivate ActionServlet

Best of all this demonstrates that you can type in little bit of code at the time to preview the results.
Update: Since I originally wrote this article, you can now even add UML Diagrams to you Wiki.
I was so impressed with this app that I created a little Confluence (a wiki) plugin: https://labs.atlassian.com/wiki/display/CUML/Confluence+UML+Sequence+Plugin
Good stuff!
-Rob
| Attachment | Size |
|---|---|
| websequencediagrams_com.png | 13.09 KB |
| Action1.png | 10.85 KB |
| Action3.png | 8.72 KB |
| Sequencesite.jpg | 39.12 KB |
| entities.png | 13.44 KB |
- Login or register to post comments
- 4099 reads
- Email this Quick Tip
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)







Comments
Tushar Joshi replied on Thu, 2008/04/03 - 7:42am
This is a great tool for saving time spent on designing and tidying the sequence diagrams. ArgoUML is very dull in creation of asequence diagrams and I was not much happy with the ArgoUML sequence diagrammng portion. This tool was a treasure found for me.
I see great value in this tool as the sequence diagram can now be saved as ascii text and hence can participate in version control mechanism easily.
I will like to see some offline tool or plugin with the same feature so I can write my text sequence diagrams and see them rendered just like this tool does.
Thanks for the tip.
with regards
Tushar
http://www.tusharvjoshi.com