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.
No comments:
Post a Comment