Simple states, composite states, and submachines have similar appearances in state charts. They have a header and an operation body.
The header displays a user-assigned name. Names must be unique. The default name is StateN. Composite states and submachines include in the header to indicate they contain regions or nested states.
The operation body displays the behavioral operation of the state written in C syntax. A composite state has multiple regions in the operation body. A line separates the regions.
Double-click or right-click the state to assign names and associate behaviors with the state.