Sequence Diagram

MD
R
Markdown

Create sequence diagrams w/ code

1===============
2Sequence Diagrams
3
4// Syntax
5title Title
6A->B:info
7boundary Boundary
8bottomparticipants
9
10// Syntax Messages
11A->B:request
12A<--B:response
13
14A->A:self message
15
16
17// Syntax: Non instantenous messages
18participant B
19participant C
20
21B->(5)C:long\n request
22activate B
23activate C
24B(1)<--C:response
25deactivate C
26deactivate B
27
28// Syntax: incoming/outgoing messages
29[->A:info
30B->]:info
31
32// Syntax: failure messages
33A-#redxB:failure 1
34C-xB:failure 2
35Bx-B:failure 3
36C(5)x--A:failure 4
37
38// Syntax: notes
39note over A:note over one\nmultiple lines\nof text
40note over A,B:note over several
41
42// Syntax: boxes
43box over A:box over one
44box over A,B:box over several
45
46
47
48// Participants
49participant; actor; boundary; control; database; entity

Created on 1/3/2022