finite state machine
noun
- Modelling behaviour as a fixed set of states and the allowed transitions between them. An order moves Draft → Placed → Shipped → Delivered; 'Shipped → Draft' is simply not a transition.
In plain words
- lots of if statements for the status
- what states can this be in
- buttons are enabled at the wrong times
- complicated status logic