Generated Sequence Diagrams

Dec 5th, 20071 Comment

I saw this tool used in some Doxygen docs recently and I knew immediately that it would be indispensable for generating sequence diagrams for online docs on wikis.  I’ll wrap it in a confluence macro and post here when its all done (unless someone points me to an existing implementation).  It would also be fantastic to have a Java port of this, but I won’t be picky.  :-)

So as in the example, this:

# MSC for some fictional process
msc {  a,b,c;  a->b [ label = "ab()" ] ;
    b->c [ label = "bc(TRUE)"];
    c=>c [ label = "process(1)" ];
    c=>c [ label = "process(2)" ];
    ...;
    c=>c [ label = "process(n)" ];
    c=>c [ label = "process(END)" ];
    a<<=c [ label = "callback()"];
    ---  [ label = "If more to run", ID="*" ];
    a->a [ label = "next()"];
    a->c [ label = "ac1()\nac2()"];
    b<-c [ label = "cb(TRUE)"];
    b->b [ label = "stalled(...)"];
    a<-b [ label = "ab() = FALSE"];
}

Becomes:
Example rendered MSC

About author:

All entries by Chris Custine

One Response to “Generated Sequence Diagrams”

  1. Bruce Snyder says:

    I found two tools to do this back in the Summer, one of which was an app named Sequence (http://www.zanthan.com/itymbi/archives/cat_sequence.html) and some other app I can’t remember now. Each one was interesting, but not what I was looking for.

Leave a Reply