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

Is it possible to group participants in PlantUML?

我想在几个参与者周围放一个方框,表明他们是某个实体的一部分。你如何在 PlantUML 中做到这一点?

您可以按照 plantuml 网站上显示的方式“框选”参与者(摘录如下)

@startuml

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

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

@enduml

这会产生: