An entry, possibly with a shallow or deep history, defines which state is to be activated first in a state machine or region. States are central elements of a state machine. Expressions are used to declare events, variables etc. and to define behavior. A transition is the transfer of one state to another. Transitions are diagrammed as arrows. They can carry events and actions, but don't need to.