plantuml : grouping sequence makes actor appears

标签 plantuml

我正在尝试制作一个 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

它工作得很好,除了它生成奇怪的伪 Actor :

enter image description here

是否可以删除这条生命线?

enter image description here

得到类似的东西(用paint.net编辑):

enter image description here

谢谢,

奥利维尔

最佳答案

在询问 plantuml 论坛后,正确的解决方法是添加关于参与而不是群组的注释:

@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

最终结果是 enter image description here

关于plantuml : grouping sequence makes actor appears,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67565518/

相关文章:

vim - 如何在区域中应用语法高亮?

java - 通过 cli 参数填充 mojo 的文件集

syntax - PlantUML:带有文本的嵌套组件可能吗?

doxygen - 如何解决 doxygen 错误 : problems running PlantUML?

uml - plantuml - 事件图 : Decision node with three outgoing edges and [else] guard

documentation - 如何包含 .iuml 路径以在 Doxygen 中生成 PlantUML 图

新命令行工具的 CMake 包装器

uml - PlantUML: "Arrows from/to class members"的意外结果

html - 如何在 Emacs 的组织模式下在源 block 的 "#+ATTR_HTML"预览输出周围添加 "#+RESULTS"?

uml - 如何纠正 PlantUML 线路径