【发布时间】:2021-11-19 17:45:56
【问题描述】:
我正在尝试在 PlantUML 中创建图表,但无法将两个动作连接起来。
源代码如下所示:
@startuml
skinparam rectangleBorderThickness 1
|#orange|Registrar|
#lightgray:**Introduce document to the system**;
:Register Document;
if (Work on the document is required?) then (Yes)
repeat
:Work on incoming documents;
|#green|Performer|
:**Perform tasks for the document**;
repeat while (Completed?) is (No) not (Yes)
|#orange|Registrar|
else
#lightgray:**Archive document**;
end
@enduml
图表显示文档生命周期。 动作1是最后阶段,这是结束,由橙色人执行。 动作 2 由绿人执行。可以做也可以不做,是条件3。
我想说的是,如果满足(完成)条件 3,则文档进入其最后阶段,即 1,它将完成循环。我可以这样做吗?
我认为我可以删除条件 3 并将操作 2 转换为条件,但我仍然无法链接回 2 和 1,这是我的主要问题。
【问题讨论】:
标签: uml plantuml activity-diagram