State diagram
= State diagram
{wiki}
Describe the possible states of a system and transitions triggered by events, optionally constrained by guards and accompanied by actions. The diagram emphasizes a component's lifecycle and permitted reactions. It can describe many interaction traces, while a <sequence diagram> focuses on the temporal ordering of messages in an interaction.