流程图的语法大体分为两部分:
- 前面部分用来定义流程图元素;
- 后面部分用来连接流程图元素,指定流程图的执行走向。
快速开始
st=>start: 开始
e=>end: 结束
st->e
注意:
可以使用>
来添加url,起到超链接的作用
st=>start:>http://www.google.com[blank]
各种标签
- start
- end
- operation
- condition
- subroutine
st=>start: 开始
e=>end: 结束
op=>operation: 操作
c=>condition: 条件
sub=>subroutine: 子程序
流程连接
使用->
来连接各个框图
注意:
条件框图中因为存在分支,所以需要在其变量后添加()
以示区分例如:
c(yes)->op1
c(no)->op2
st=>start: Start|past:>http://www.google.com[blank]
状态标记
- past
- current
- future
- approved
- rejected
- invalid
使用|
来定义状态
st=>start: 开始|past