uml - plantuml - 事件图 : Decision node with three outgoing edges and [else] guard

标签 uml plantuml activity-diagram

如何设计一个具有三个传出边缘和其他防护的决策节点?

我想要的是 - 来自决策节点“测试”的 3 个传出边?

enter image description here

@startuml

start
:dd;
if (test?) then (a)
  :A;
else if (b)
  :B;
else (c)
  :C;
endif
:wertz;
:dewe;
end

@enduml

最佳答案

为此,您可以使用事件“旧”语法允许的几个else:

@startuml
(*) --> if "" then
  --> [[priority = 1]] "A"
else
  --> [[priority = 2]] "B"
else
  --> [[else]] "C"
endif
@enduml

enter image description here

请注意,不可能直接使用 ]]\]],两者都会产生语法错误,因此我必须使用 ] 关闭括号

关于uml - plantuml - 事件图 : Decision node with three outgoing edges and [else] guard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66238654/

相关文章:

python - 如何在 pandocfilters 中获取带有 Markdown 的字幕?

uml - 我可以在事件图中多次使用最终事件节点吗?

java - 如何从 Java 代码生成 UML 图(尤其是序列图)?

uml - 在 SRS 中绘制状态机图的更好单位是什么?

uml - 如何使用plantuml在序列图中创建并行交互

uml - 如何在 UML 中合并决策/ fork 节点

architecture - 如何在 UML 事件图中可视化协作事件?

mysql - 多对多关系和关系模型

UML:同一组件在两个不同的地方

plantuml - plantuml如何表示多案例决策节点?