Concept
tryAccept()
A state transition method proposed by StareBrain that enforces a structural invariant in the two-axis state model: AcceptanceState may transition away from PENDING only when DeliveryState is CONFIRMED.
Timeline (last 90 days)
Oct 13
StareBrain enforces the structural invariant through the tryAccept() method: only when delivery == CONFIRMED is the acceptance state allowed to transition from PENDING, otherwise an exception is thrown.
Unverified50%