我在 Markdown 中使用 PlantUML 来绘制一些序列图,并且我希望能够相应地对参与者进行分组。
在我的序列图中,我使用
alt
分组关键字来区分不同的结果。但是,当我使用 box
命令对参与者进行分组时,该框的阴影内不包含 alt
组。
在问题here中,OP询问如何在PlantUML中对参与者进行分组。我的问题是不同的,因为我想知道如何让盒子着色以包含测试用例,而不是围绕它。
现有参与者分组效果
@startuml
box "Internal Service" #LightBlue
participant Bob
participant Alice
end box
participant Other
Bob -> Alice : hello
Alice -> Other : hello
@enduml
此示例的原始源代码来自 this Question,并且归功于 Jean-Marc Volle
我的问题
我在下面附上了一个最小的可重现示例。请注意,指示组的灰色阴影如何不会遮盖
alt
测试用例?我想知道如何才能包含阴影。
@startuml
actor pm
box "app"
participant A
participant B
end box
participant C
participant D
A --> B: message
alt Test A
A --> B: something
else Test B
B --> C: something else
end group
@enduml