Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sequence diagrams #58

Open
iluwatar opened this issue Aug 21, 2020 · 0 comments
Open

Create sequence diagrams #58

iluwatar opened this issue Aug 21, 2020 · 0 comments

Comments

@iluwatar
Copy link
Owner

In addition to class diagrams it would be awesome to support sequence diagrams. After some research, it seems that all of the current presenters support that diagram type, so it should be possible. Here are the examples for each presenter.

Graphviz:

digraph G {
 rankdir="LR";
 node[shape="point"];
 edge[arrowhead="none"]

 {
   rank="same";
   LC[shape="plaintext"]
   LC -> step00 -> step01 -> step02 -> step03 -> step04 -> step05;
 }

 {
   rank="same";
   Agency[shape="plaintext"]
   Agency -> step10 -> step11 -> step12 -> step13 -> step14 -> step15;
 }

 {
   rank="same";
   Agent[shape="plaintext"]
   Agent -> step20 -> step21 -> step22 -> step23 -> step24 -> step25;
 }

 step00 -> step10 [label="sends email new custumer", arrowhead="normal"];
 step11 -> step01 [label="declines", arrowhead="normal"];
 step12 -> step02 [label="accepts", arrowhead="normal"];
 step13 -> step23 [label="forward to", arrowhead="normal"];
 step24 -> step14;
 step14 -> step04 [arrowhead="normal"];
}

PlantUML:

@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
@enduml

Mermaid:

sequenceDiagram
	Alice->>+John: Hello John, how are you?
	Alice->>+John: John, can you hear me?
	John-->>-Alice: Hi Alice, I can hear you!
	John-->>-Alice: I feel great!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant