Consider this invalid PlantUML text:
@startuml SomeName
[*] --> CONFIG
state CONFIG
state MENU {
state CONFIG
}
@enduml
CONFIG is first declared at the root and then again later inside of MENU. That makes no sense. We will throw a descriptive exception.
However, this is OK:
@startuml SomeName
state MENU {
state CONFIG
}
state CONFIG
{
state CONFIG_INNER
}
[*] --> CONFIG
@enduml