Bad format for state machine -- all one line

+1 vote
asked Oct 25 in Bug by Marc
@startuml

 
[*]->starting
 
starting -> reset_counts : message
starting -> late_data : Timer Exrired
 
reset_counts -> reset_counts : Message
reset_counts -> late_data : Timer Expired
 
late_data -> reset_counts : SWCongestData
late_data -> late_data : Timer Expired [g1]
late_data -> late_cycle  : Timer Expired [!g1]
 
late_cycle -> reset_counts  : Message
late_cycle -> late_data : Timer Expired [g1]
late_data -> resynchronize : Timer Expired [!g1]
 
resynchronize -> starting
 
@enduml

It formats all the states horizontally in one line.

If the starting state was moved up, and the resynchronize state was moved down the output would be able to be understood and you would not have as many crossed lines.

1 Answer

0 votes
answered Oct 25 by plantuml (207,280 points)
commented Oct 26 by albert (2,540 points)
so using '-->' instead of '->'
commented Oct 26 by Marc Pawlowsky

I tried to clone https://github.com/plantuml/plantuml.git and https://github.com/plantuml/plantuml-server.git to make a change to the documentation to specify the difference between -> and -->, so I could push a change.  Unfortunately I could not find the location where http://plantuml.com/state-diagram is generated from.

commented Oct 26 by plantuml (207,280 points)
It is generated from http://wiki.plantuml.net/site/state-diagram

Thanks for your contribution !
...