PlantUML活动图返回

时间:2015-11-21 16:02:15

标签: uml activity-diagram plantuml

我使用PlantUML创建活动图。我希望修改细节中出现的箭头返回到OP2而不是菱形。

@startuml
|Swimlane1|
start
:OP1;
|Swimlane2|
:OP2;
 if (Form Valid?) then (No)
|Swimlane1|
:Modify Details;  
|Swimlane2|

  else (Yes)
    :Add Detals to System;
  endif
:OP3;
|Swimlane2|
:foo5;
stop
@enduml

1 个答案:

答案 0 :(得分:0)

你能用whilerepeat表达吗?下面不是你的逻辑,因为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