Stereotyped multi-line notes on messages

0 votes
asked Jun 12, 2018 in Question / help by Linus

For sequence diagrams I would like to use stereotyped multi-line notes on messages., e.g. like so:

Alice -> Bob: message()

note<<myStyle>> left
... note text
end note

But this does not work and I get syntax errors. However this works:

Alice -> Bob: message()

note<<myStyle>> over Alice
... note text
end note

Is there any way to make it also work for message notes?

Thx,
Linus

1 Answer

0 votes
answered Jun 12, 2018 by plantuml (295,760 points)

Thanks for the report.

This should be fixed in last beta http://beta.plantuml.net/plantuml.jar

The following example is now working for us:

@startuml
Alice -> Bob: message()

skinparam noteBackgroundColor blue
skinparam noteBackgroundColor<<myStyle>> red

note <<myStyle>> left
... note text
end note

@enduml

Tell us if it's not what you were expecting

commented Jun 13, 2018 by Linus
Many thanks for the fix. The note is now appearing aligned with the message. There is only a small glitch: the stereotype is ignored somehow and the note shows a blue background, but it should be red in your example. If you use "note <<myStyle>>  over Alice" instead, it is red.

Regards,
Linus
commented Jun 13, 2018 by plantuml (295,760 points)
You're 100% right! I don't know how we miss this one.

Fixed in newly beta4 http://beta.plantuml.net/plantuml.jar
Thanks again, and do not hesitate to post again when you'll find some more issues.
commented Jun 13, 2018 by Linus
Perfect! Many Thanks!
...