其他 | 流程图工具plantuml

通过输入语句,即可自动绘制流程图

Posted by Haauleon on April 10, 2024

背景

  我属于逻辑型选手,写逻辑可以,但是绘制流程图我老觉得太麻烦了,不喜欢,于是在网上找到了一种在线生成流程图的工具。



使用

1、进入网站:http://www.plantuml.com/
2、在输入框中填写一下命令行:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@startuml
start
:ClickServlet.handleRequest();
:new page;
if (Page.onSecurityCheck) then (true)
:Page.onInit();
if (isForward?) then (no)
:Process controls;
if (continue processing?) then (no)
stop
endif
if (isPost?) then (yes)
:Page.onPost();
else (no)
:Page.onGet();
endif
:Page.onRender();
endif
else (false)
endif
if (do redirect?) then (yes)
:redirect process;
else
if (do forward?) then (yes)
:Forward request;
else (no)
:Render page template;
endif
endif
stop
@enduml

3、点击提交按钮 submite
4、等待生成流程图




参考资料:
PlantUML_Language_Reference_Guide_zh.pdf
离线文档:
https://pan.baidu.com/s/1TUetC89Y_ix8UpI5kGaw5Q?pwd=ciwd