Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

PlantUML: Add notes to an activity in activity diagram

Using below keywords, we can Add Notes to the activities in an activity diagram.

 

a.   note left of

b.   note right of

c.    note top of

d.   note bottom of

 

Example

note left of state1 : short note on state1

note right of state1 
long note that can span
across multiple lines
end note

notes.txt

@startuml

[*] --> state1
state1 --> state2
state2 --> state3
state3 --> state4
state4 --> state5
state5 --> [*]

note left of state1 : short note on state1

note right of state2
long note that can span
across multiple lines
end note

note top of state3 : short note on state3

note bottom of state4 : short note on state4

@enduml

Above snippet generate below diagram.




 

 

Previous                                                    Next                                                    Home


This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

PlantUML: Add notes to an activity in activity diagram

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×