【发布时间】:2020-06-22 06:06:43
【问题描述】:
我正在尝试使用 PlantUML 创建一个包含返回现有节点的箭头的活动图。
我正在寻找的是一个图表,其中包含下图中的两个箭头“箭头 1”和“箭头 2”:
我尝试使用PlantUML beta syntax for Activity diagrams 创建它。
我实现了下图:
通过编写以下 PlantUML 代码:
@startuml
start
:new - please check;
while (check sucessful?) is (is an error)
:to solve;
:in progress;
:solved;
endwhile (not an error)
:erledigt;
note left
reason:
* done
* not an error
* not fixable
end note
stop
@enduml
有人对如何实现这一点有提示吗?使用 beta 语法或the older syntax 实现结果对我来说并不重要。
【问题讨论】:
-
我不知道 Plantuml 但在你的额外箭头上应该有警卫。也许这就是 Plantuml 所期望的?
-
附带说明:您的两个“守卫”必须写在方括号中,以便语法正确。
-
@qwerty_so:在最后的图中应该有警卫,这是真的。 (否则就没有机会知道什么时候走哪条路)。但我不认为这是让它在 plantUML 中工作的缺失部分,因为那里的守卫是可选的。