AI Personal Learning
and practical guidance

ZenUML: Creating Sequence Diagrams and Flowcharts Based on Simple Text Code

General Introduction

ZenUML is a multi-platform diagram-as-code solution focused on creating sequence diagrams and flowcharts. It avoids delays in server-side interactions by rendering diagrams in real-time in the browser, so that the user's thought process is not interrupted by inefficient drag-and-drop operations or slow loading animations.ZenUML's diagrams are not just static images, but the user can interact with the diagrams, e.g., by highlighting the message on the diagram in editing mode that automatically selects the corresponding code.ZenUML emphasizes on privacy and security, never sending data to the server for rendering to ensure the security of the user's data. It never sends data to the server for rendering to ensure the security of user data. The tool is OMG UML 2.5.1 compliant and offers rich extensions, such as cloud icons, to make diagrams more readable.ZenUML is used in a wide range of industries such as fintech, telecom and retail, and is supported on a variety of platforms, including Confluence, web apps, browser extensions, IDE plug-ins, and desktop applications.

 

Function List

  • Real-time rendering: Renders charts in real-time in the browser without server-side interaction.
  • Interactive Charts: Users can interact with charts and quickly navigate complex charts.
  • Privacy and security: No data is sent to the server for rendering, ensuring data security.
  • Standards compliance: Conforms to OMG UML 2.5.1 standard and provides rich extended functionality.
  • Multi-platform support: Confluence, web applications, browser extensions, IDE plug-ins and desktop applications are supported.
  • Simpler DSL: Use a simpler DSL language to reduce lines of code and improve readability and maintainability.
  • Professional Support: Installation, training and troubleshooting support is provided, with most issues resolved within 8 hours.
  • Rich extensions: such as cloud icons to make charts more readable.

 

Using Help

Installation process

  1. Web Application Usage::
    • Visit the ZenUML website (https://zenuml.com/).
    • Register and log in to your account.
    • Enter the workspace and start creating the chart.
  2. Confluence Plugin Installation::
    • In the Confluence Administration Backend, select Apply.
    • Search for "ZenUML" and click "Install".
    • Once the installation is complete, add the ZenUML macro to the page to begin creating the diagram.
  3. Browser Extension Installation::
    • Search for "ZenUML" in your browser extension store.
    • Click "Add to Browser" and follow the instructions to complete the installation.
    • Once the installation is complete, click on the ZenUML icon in the browser toolbar to begin creating the diagram.
  4. IDE plug-in installation::
    • Search for "ZenUML" in the IDE's plugin market.
    • Click "Install" and follow the prompts to complete the installation.
    • Once the installation is complete, open the ZenUML plugin in the IDE and start creating diagrams.

Usage Process

  1. Creating Sequence Diagrams::
    • Select "New Chart" in the workspace.
    • Select the Sequence Diagram template.
    • Write code using ZenUML's DSL language, for example:
     Alice --> Bob: Hello Bob, how are you?
    Bob --> Alice: I am good thanks!
    
    • Preview charts in real time to make adjustments and optimizations.
  2. Creating Flowcharts::
    • Select "New Chart" in the workspace.
    • Select the Flowchart template.
    • Write code using ZenUML's DSL language, for example:
     start
    :Step 1; :Step 2; :Step 3; :Step 4; :Step 5; :Step 6; :Step 7
    :Step 2; :Step 3; :Step 4; :Step 5; :Step 6; :Step 7; :Step 8
    :Step 3; :Step 4; :Step 5; :Step 6; :Step 7
    start :Step 1; :Step 2; :Step 3; :Step 4; :Step 5
    
    • Preview charts in real time to make adjustments and optimizations.
  3. Exporting and sharing charts::
    • When you have finished creating the chart, click the "Export" button and select the export format (PNG, SVG, etc.).
    • Share charts via link or embed code.
  4. Advanced Features::
    • Enhance chart readability with cloud icons and other extensions.
    • Highlight messages on the chart in edit mode to quickly navigate the code.
    • Visit the ZenUML Help Center for more tips and support.

common problems

  • How to ensure data security? ZenUML does not send data to the server for rendering, all operations are done locally to ensure data security.
  • How do I get technical support? Visit the ZenUML Help Center to submit a support request, most issues are resolved within 8 hours.
  • Does it support teamwork? ZenUML supports team collaboration, where users can share diagram links and edit and view diagrams together.

 

Schematic Sharpener D2

There are many tools for making schematics.


I like to use text code based diagramming tools for wireframe diagrams like Mermaid, Plantuml, Graphviz.

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-1

They all generate images, based on the code, and are perfect for putting into code repositories for versioning.

Recently, I discovered a much easier-to-use tool of its kind D2The following is a simple, intuitive and powerful program.

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-2

D2 can be used on the command line or in the browser. Suppose you have an image code fileexample.d2Then the command to generate the image is as follows.

$ d2 example.d2

Most of the time I use it through my browser. It has an online generator play.d2lang.com(Below), paste the code in, press the "compile" button, and the image will be generated immediately.

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-3

If you want node A (the name of the node is A), just type A.

A

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-4

A is just the name of the node, if you want to customize the content of the node, write it like below.

A: A

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-5

Next, add a node.

A: A
B: B

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-6

Connect them.

A: A
B: B
A -> B

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-7

The connection can be made with a positive arrow (->), or you can use the reverse arrow (<-), and even bidirectional arrows (). If you don't need arrows, just connect the lines (--).

Text can also be added to the arrows.

A: A
B: B
A -> B: Connection

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-8

There can be multiple connections between nodes.

A: A
B: B
A -> B: Request
A <- B: Response

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-9

Node connections can also be written on one line.

A -> C <- B: Connections

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-10

Stage 1 -> Stage 2 -> Stage 3 -> Stage 4
Stage 4 -> Stage 1: Feedback

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-11

This syntax is enough to draw a basic wireframe diagram, isn't it quite simple.

D2 can draw very complex diagrams, for more syntax see(computer) fileThe

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-12

One last mention, if you want to change the node shape, the box is changed to a circle, as written below.

A: A
A.shape: circle

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-13

The shape can even be changed to a cloud to indicate a cloud service.

A: A
A.shape: cloud

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-14

The line color can also be changed.

A: A
A.style.stroke: red

ZenUML: Creating Fast and Efficient Sequence Diagrams and Flowcharts-15

May not be reproduced without permission:Chief AI Sharing Circle " ZenUML: Creating Sequence Diagrams and Flowcharts Based on Simple Text Code

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish