@startuml
'https://plantuml.com/state-diagram

'hide description area for state without description
hide empty description

state S1
state S2  {
  state S21
  state S22


  [*] -[#000000]-> S21
}


[*] -[#000000]-> S1
S1 -down[#000000]-> S2 : E1
S22 -up[#000000]-> S2 : E33
S21 -up[#000000]-> S2 : E32
S22 -up[#000000]-> S2 : E23
S21 -up[#000000]-> S2 : E22
S2 -down[#000000]-> S21 : E20
S2 -down[#000000]-> S22 : E21
S2 -down[#000000]-> S21 : E30
S2 -down[#000000]-> S22 : E31

@enduml