A simple state is one which has no substructure. A state which has substates (nested states) is called a composite state. Substates may be nested to any level. A nested state machine may have at most one initial state and one final state. Substates are used to simplify complex flat state machines by showing that some states are only possible within a particular context (the enclosing state).
Continue reading![What is a composite state in a UML state machine diagram? What is a composite state in a UML state machine diagram?](https://cdn-images.visual-paradigm.com/guide/uml/what-is-state-machine-diagram/07-submachine-example.png)