如何设计一个具有三个传出边缘和其他防护的决策节点?
我想要的是 - 来自决策节点“测试”的 3 个传出边?
@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
请注意,不可能直接使用 ]]
或 \]]
,两者都会产生语法错误,因此我必须使用 ]
关闭括号
关于uml - plantuml - 事件图 : Decision node with three outgoing edges and [else] guard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66238654/