help untangle the state diagrams

0 votes
asked Jul 12 in Question / help by anonymous

I am creating state diagrams flow but it's starting to get cluttered as I add more states.

scale 350 width
state A               #khaki
state B           #BUSINESS
state C         #bisque
state D       #APPLICATION
state E          #IndianRed
state F   #MediumTurquoise
state G             #Salmon
state E      #HoneyDew
state G          #PaleTurquoise
state H     #Aqua

state JOIN_STATE_UNDEFINED      <<join>>
state JOIN_STATE_FAILED         <<join>>
state JOIN_STATE_STARTUP_REQ    <<join>>
state JOIN_STATE_SHUT_DOWN      <<join>>

[*] --> A
A --> B

B --> C
C -[#Red]-> JOIN_STATE_FAILED
C -[#IndianRed]-> JOIN_STATE_UNDEFINED
C --> D

C --> JOIN_STATE_SHUT_DOWN
D --> JOIN_STATE_SHUT_DOWN
F --> JOIN_STATE_SHUT_DOWN
G --> JOIN_STATE_SHUT_DOWN
H --> JOIN_STATE_SHUT_DOWN


D --> F
D --> D

D -[#Red]-> JOIN_STATE_FAILED
'D --> G : EV_MODULE_STARTUP_REQUEST fails
D -[#IndianRed]-> JOIN_STATE_UNDEFINED
'D --> E : EV_MODULE_STARTUP_REQUEST timeout

F --> G
F -[#Red]-> JOIN_STATE_FAILED
F -[#IndianRed]-> JOIN_STATE_UNDEFINED

G --> H
G -[#Red]-> JOIN_STATE_FAILED
G -[#IndianRed]-> JOIN_STATE_UNDEFINED

E -[#Crimson]-> G
E -[#FireBrick]-> E

E --> A

JOIN_STATE_UNDEFINED -[#IndianRed]-> E
JOIN_STATE_FAILED -[#Red]-> G
JOIN_STATE_SHUT_DOWN --> E

@enduml

commented Jul 12 by anonymous
HERE'S THE RESULTANT OUTPUT:

https://ibb.co/FByh6jH

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...