@startuml

left to right direction
'top to bottom direction

skinparam backgroundColor White
skinparam legendBackgroundColor White
skinparam legendBorderColor White
skinparam state {
  StartColor Black
  EndColor Black
  BackgroundColor GhostWhite
  BackgroundColor<< workflow >> White
  BorderColor Black
  ArrowColor Black

  BorderColor<< event >> Black
  BorderColor<< operation >> Black
  BorderColor<< switch >> Black
  BorderColor<< sleep >> Black
  BorderColor<< parallel >> Black
  BorderColor<< inject >> Black
  BorderColor<< foreach >> Black
  BorderColor<< callback >> Black
}


[# th:each="stateDef : ${diagram.modelStateDefs}" ]
[(${stateDef.toString()})]
[/]

[# th:each="state : ${diagram.modelStates}" ]
[(${#strings.arraySplit(state.toString(), '\n')[0]})]
[/]

[# th:each="connection : ${diagram.modelConnections}" ]
[(${connection.toString()})]
[/]


@enduml