summaryrefslogtreecommitdiff
path: root/3 resources/mermaidjs/mermaidjs.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-01-08 10:48:09 +0100
committerJasper Ras <jras@hostnet.nl>2025-01-08 10:48:09 +0100
commited0753ad224f0c65133bd7a63180257eecd9f5e3 (patch)
treecc662868574fe17db58be9e0faadd452c84dc59c /3 resources/mermaidjs/mermaidjs.md
parent493be30dc981eaf762a95a1218f96893b1976727 (diff)
vault backup: 2025-01-08 10:48:09
Diffstat (limited to '3 resources/mermaidjs/mermaidjs.md')
-rw-r--r--3 resources/mermaidjs/mermaidjs.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/3 resources/mermaidjs/mermaidjs.md b/3 resources/mermaidjs/mermaidjs.md
new file mode 100644
index 0000000..e468459
--- /dev/null
+++ b/3 resources/mermaidjs/mermaidjs.md
@@ -0,0 +1,21 @@
+**ZenUML**
+Optional **Title**
+**Participants** can be declared when used or at the start.
+**Annotators** give **participants** a special icon, defined at the doc site.
+**Aliases** give a short **participant** name a more descriptive name when rendered, e.g: A as Alice <- Alice will be rendered, but the code can use A.
+**Messages** between **participants** can be **sync, async, creation or reply**.
+**Sync** use A.\<MessageName\> have a block {} for nested messages
+**Async** use an arrow A->B: How are you?
+**Creation** new keyword new A(optional params)
+**Reply** three ways to define:
+* Assign var from **Sync** message, e.g: OptionalType a = A.SyncMessage()
+* Return A.SyncMessage { return blaat }
+* @return or @reply on an **async** message
+**Nesting** can be done on both creation and sync messages using blocks {}.
+**Comments** can be added using `// comment` and support markdown.
+**Loops** can be defined using keywords: **while, for, foreach and loop**.
+**Alternative** paths can be sequenced using **if, else** statements. if(blaat) { A.syncMessage(B) }
+**Opt** fragments rendered via `opt { ... }`. This can be useful for optional responses or paths.
+**Parallel** paths can be defined using `par { ... }`.
+**Try/catch/finally** statements are supported as well.
+**@Starter(participant)** to make the line start from a **participant** \ No newline at end of file