May 2020
Intermediate to advanced
542 pages
18h 28m
English
Each entity has a life cycle that has a beginning and an end.
Let's look at the following real-world example to bring the state modeling technique to life.
A gift card can have an inactive, active, blocked, or canceled status.
A state model describes the different states that an entity can be in, how each transition between the states occurs, and the conditions that change the entities' states.
A state is described by a name and the actions that are valid for an entity when in a specific state. In some cases, an entity can be in more than one state at a time.
If we consider our gift card example, the gift card (the entity)'s state is inactive, which means the card cannot be used for transactions ...
Read now
Unlock full access