【问题标题】:PlantUML Activity Diagram Go BackPlantUML 活动图 返回
【发布时间】:2016-02-24 01:15:29
【问题描述】:

我正在使用 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

这给出了这个图像:

【问题讨论】:

    标签: uml activity-diagram plantuml


    【解决方案1】:

    你能用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
    

    【讨论】:

      猜你喜欢
      • 2022-08-24
      • 2018-04-25
      • 1970-01-01
      • 2022-08-19
      • 1970-01-01
      • 2020-06-09
      • 1970-01-01
      • 2022-12-17
      • 2018-02-09
      相关资源
      最近更新 更多