PlantUML Activity Diagram Go Back

独自空忆成欢 提交于 2020-08-24 03:30:34

问题


I am using PlantUML to create an Activity diagram.

I want the arrow that comes out of Modify Details to go back to OP2 instead of the diamond.

I have this diagram:

@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

Which gives this image:


回答1:


Can you express it with a while or repeat? Below is not quite your logic as OP2 would not always occur, but perhaps it will help you express your logic within the diagram constraints:

|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/plantuml-activity-diagram-go-back

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!