How to add notes/loop-messages at the same level in a sequence diagram?

0 votes
asked Jun 21, 2019 in Wanted features by PlantUML Fan

Hello.  I may have two participants: Server and Client.

I would like to add a note over each participant, but at the same level.  So as an example,


participant Server

participant Client

note over Server

    Initializing publication.

end note

note over Client

    Initializing subscription.

end note

Server -> Client : A publication.


In the above example, I'd like the two notes to be on the same 'horizon-level'.  Also, instead of messages, perhaps I want to show that the initialization happens at the same time:

    Server->Server : Initialize publication.

    Client->Client : Initialize subscription.

Thanks, and keep up the good work!!

2 Answers

0 votes
answered Jun 24, 2019 by ichi
0 votes
answered Feb 28, 2021 by The-Lu (64,340 points)

Hello P. F.,

Just to answer to an old quasi-unanswered question (and point out similar question/answers).

Here are some answers:

With that, we observe the expected result:

/note over Client
    Initializing subscription.
end note