Sunday 8 October 2023

How to Add Notes to Activities in PlantUML Activity Diagrams

We can add note to the activity diagram using ‘note right’, ‘note left’ keywords.

notes.txt

@startuml

start

:activity1;
note left: This is activity1

:activity2;
note right
	This is activity2 and this note
	can span across multiple lines and
	can support <b>HTML</b> tags.
end note

stop

@enduml

 

Above snippet generate below diagram.

   

Previous                                                    Next                                                    Home

No comments:

Post a Comment