Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

plantuml : grouping sequence makes actor appears

Tags:

plantuml

I am trying to make a plantuml diagram grouping some activation with notes on groups. It looks like this :

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

It works great except it generates strange pseudo actors :

enter image description here

Is it possible to remove this lifeline ?

enter image description here

to get something like (edited with paint.net) :

enter image description here

Thanks ,

Olivier

like image 472
Olivier Duhart Avatar asked Oct 21 '25 16:10

Olivier Duhart


1 Answers

After asking plantuml forum the right workaround is to add the note on 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

the final result is enter image description here

like image 109
Olivier Duhart Avatar answered Oct 26 '25 18:10

Olivier Duhart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!