plantuml / plantuml.js

PlantUML that runs completely on javascript without needing java/servers
https://plantuml.github.io/plantuml.js/
MIT License
215 stars 37 forks source link

State Diagram - sub states example not correct #72

Open darylteo opened 5 months ago

darylteo commented 5 months ago
[*] -> State1
State1 --> State2 : Succeeded
State1 --> [*] : Aborted
State2 --> State3 : Succeeded
State2 --> [*] : Aborted
state State3 {
  state "Accumulate Enough Data\nLong State Name" as long1
  long1 : Just a test
  [*] --> long1
  long1 --> long1 : New Data
  long1 --> ProcessData : Enough Data
}
State3 --> State3 : Failed
State3 --> [*] : Succeeded / Save Result
State3 --> [*] : Aborted

Expected

https://plantuml.com/state-diagram

https://plantuml.com/imgw/img-494c143caf3638f83ec9af6d5dbb653e.png

Actual

image