Thursday 25 January 2024

PlantUML: Add description to the states in a state diagram

Using colon operator, we can add description to the state.

 

Syntax

state : description

 

stateDescription.txt

@startuml

state state1

state1: This is state first description
state1: This is state second description

[*] --> state1
state1 --> state2
state2 --> [*]

@enduml

 

Above snippet generate below diagram.

 


  


Previous                                                    Next                                                    Home

No comments:

Post a Comment