States
States are conditions which a system or sub-system can be in during system operation.
Context
States can have an entry to specify the first executed behavior after the modeled system or sub-system enters the state, an exit to specify the last executed behavior before the modeled system or sub-system leaves the state, and a do to specify the behavior that happens in between the entry and exit.
To describe the sub-states within a complex state, create a sub-diagram for it or create nested symbols inside the state.
In this example, Computer Monitor Power On is a composite state with the Power Light On entry behavior and the Power Light Off exit behavior. The composite state contains sub-states 1024*768pixels and 1280*1024pixels.






