如何解决Plantuml : 分组序列使演员出现
我正在尝试制作一个植物图,将一些激活与组注释分组。 它看起来像这样:
actor User as U
box SBCP
participant "First" as F
participant "Second" as S
U -> F : "start"
group firstgroup
note over firstgroup
a first note
end note
F -> S ++ : first
S -> F -- : end first
end group
group secondgroup
note over secondgroup
a second note
end note
F -> S ++ : second
S -> F -- : end second
end group
效果很好,只是会生成奇怪的伪演员:
这条生命线可以去掉吗?
得到类似的东西(用paint.net编辑):
谢谢,
奥利维尔
解决方法
在询问了 plantuml 论坛之后,正确的解决方法是添加关于 participand not group 的注释:
@startuml
actor User as U
box SBCP
participant "First" as F
participant "Second" as S
U -> F : "start"
group firstgroup
F -> S ++ : first
S -> F -- : end first
' add the note to the right
note right: a note
end group
group secondgroup
F -> S ++ : second
' add the note to the right
note right: another note
S -> F -- : end second
end group
@enduml
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。