Sunday 4 February 2024

PlantUML: conditional state in state diagram

<<choice>> stereotype used to define conditional state.

conditionalState.txt

@startuml
state init
state someCondition <<choice>> 
state "less utilized resources" as lur
state "high utilized resources" as hur

init --> someCondition 
someCondition --> lur : [memory < 500gb]
someCondition --> hur : [memory >= 500gb]

@enduml

Above snippet generate below diagram.



 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment