websequencediagrams.com
Last updated
Last updated
Here are some links to competitors' website and their guidance pages.
Draw a signal from one participant to another like this:
The participants are automatically created when they are used. Use the "-->" syntax to draw a dotted line.
To include a colon in a participant name, enclose it in quotes.
The next section describes how to save typing by declaring participant names.
If you want to participants to be shown in a different order than they are used, declare them first using theparticipant
keyword. You can also rename them this way to save typing.
A participant can send a signal to itself. This will result in an arrow that turns back on itself.
You may break the text into multiple lines by using "\n".
You can group signals together using thealt/else
,opt
,loop
, andpar
keywords. All of them can take a text description that will be displayed in the group header. Use theend
keyword to signal the end of a group. The groups may be nested to any depth.
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.
If a note contains more than one line, it will be not be word-wrapped. Instead, it will be formatted exactly as written.
Use the+
and-
with signals to denote object activation. While activated, the participant's lifeline will be highlighted.+
will activate the receiver, and-
will deactivate the sender.
Use*
with signals to create a participant.A->*B: hello
.
You can use thedestroy
keyword to destroy a participant. The participant's lifeline will end at the previous signal.
Get more control over activations using the
activate
and
deactivate
keywords. The commands apply to the previous signal.
Activations and deactivations attach themselves to the previous signal. Neither a note or a state can cause a deactivation. If you want to deactivate spontaneously, use a signal-to-self.
You can refer to and include other diagrams that you have saved in your account without retyping the text. Use the word
include
followed by the filename in quotes.
You can use any file to which you have access, including those in shared folders.
You can make different things happen at the same time using theparallel
keyword.
Use the serial keyword within a parallel block to describe two parallel sequences of operations.
A rounded box can be useful to show state information. The syntax is identical to thenote
keyword, except thatstate
is used.
Autonumbering will automatically prefix all signals with a number. To use it, include the line autonumber followed by the number to start with. To turn off autonumbering, use "autonumber off"
You can summarize or refer to sequences by drawing a box over one or more participants.
Change the way the bottom of your diagram looks usingoption footer=.
You can optionally have a signal going into the box or one coming out of it.