是否可以在 PlantUML 中对参与者进行分组?

use*_*107 11 plantuml

我想要一个围绕几个参与者的盒子,表明他们是一个实体的一部分。如何在 PlantUML 中做到这一点?

Jea*_*lle 23

您可以将参与者“装箱”,如 plantuml 网站上所示(摘录如下)

@startuml

box "Internal Service" #LightBlue
participant Bob
participant Alice
end box
participant Other

Bob -> Alice : hello
Alice -> Other : hello

@enduml
Run Code Online (Sandbox Code Playgroud)

这会产生: 在此输入图像描述