Contents
Add message sequence chart diagrams with mscgen to Trac wiki page
Description
This plugin renders mscgen message sequence chart diagrams on a Trac wiki page:
Mscgen is a small program that parses Message Sequence Chart descriptions and produces PNG, SVG, EPS or server side image maps as the output. Message Sequence Charts (MSCs) are a way of representing entities and interactions over some time period. Mscgen is a simplification of Graphviz. It is GPLv2 licensed.
An example of the syntax used:
{{{ #!mscgen msc { hscale = "1"; 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"]; } }}}
See also:
- MermaidMacro Render mermaid diagrams in wiki pages
- PlantUmlMacro Render PlantUML diagrams in wiki pages
- TracBlockDiagPlugin Render blockdiag diagrams into Trac wiki pages
- WebSequenceDiagramPlugin Render UML diagrams on Trac wiki and ticket pages
Bugs/Feature Requests
Existing bugs and feature requests for MscgenPlugin are here.
If you have any issues, create a new ticket.
Known bugs
- Path to the msgcen library is hardcoded to
/usr/local/bin/mscgen
. - Path to the cache directory is hardcoded to
<trac_env>/mscgen
. - Cache cleanup is missing.
Download
Download the zipped source from here.
Source
You can check out MscgenPlugin from here using Subversion, or browse the source with Trac.
Installation
General instructions on installing Trac plugins can be found on the TracPlugins page.
Recent Changes
Author/Contributors
Author: mclap
Maintainer: Pavel Plesov
Contributors:
Attachments (1)
-
msc1.png (1.5 KB) - added by 8 years ago.
Generic mscgen example
Download all attachments as: .zip