我正在使用PlantUML创建一个活动图。
我希望从Modify Details出来的箭头回到OP2,而不是钻石。
我有这个图表:
@startuml
|Swimlane1|
start
:OP1;
|Swimlane2|
:OP2;
if (Form Valid?) then (No)
|Swimlane1|
:Modify Details; /' <-- This should point _back_ to OP2 '/
|Swimlane2|
else (Yes)
:Add Detals to System;
endif
:OP3;
|Swimlane2|
:foo5;
stop
@enduml它给出了这个图像:

发布于 2015-11-22 00:49:49
你能用while或repeat来表达它吗?下面不完全是你的逻辑,因为OP2不会总是发生,但它可能会帮助你在图表约束中表达你的逻辑:
|Swimlane1|
start
:OP1;
|Swimlane2|
while (Form Valid) is (no)
:OP2;
|Swimlane1|
:Modify Details;
endwhile (yes)
|Swimlane2|
:Add Detals to System;
:OP3;
:foo5;
stop
@enduml

https://stackoverflow.com/questions/33845514
复制相似问题