Monday 11 March 2024

PlantUML: add note on links in state diagram

Using ‘note on link’ command, we can put notes on the links.

Example 1

state1 --> state2
note on link : This is note 1

 

Example 2 : multi line note

state2 --> state3
note on link
This is multi line
note using note on link
command
end note

noteOnLink.txt

@startuml

left to right direction

[*] --> state1
state1 --> state2
note on link : This is note 1

state2 --> state3
note on link
This is multi line
note using note on link
command
end note

state3 --> [*]

@enduml

Above snippet generate below diagram.




 

Previous                                                    Next                                                    Home

No comments:

Post a Comment