how to attach note to arrows in state diagram

0 votes
asked Mar 24, 2018 in Question / help by Leonid Y
I would like to attach a note to state-transition(or its text) in the state diagram. How can I do it?
The documentation describes only a note that is attached to specific state and "floating" note that cannot be aligned on a complex diagram.

1 Answer

0 votes
answered Jul 29 by The-Lu (10,120 points)

Hello L.,

Adaped from: https://forum.plantuml.net/7855/notes-on-arrow?show=7858#a7858

We can use (tested on v1.2020.15):

@startuml
[*] -> State1
State1 --> State2
note on link
  this is a state-transition note
end note
@enduml


[click to see on PlantUML server]

[to be added to the documentation wink]
If that can help,
Regards,
Th.

...