Is it possible to store the substate internally to distinguish between permitted triggers but expose the superstate to the outside world?
In my example, I distinguish between LockedOutForEmail and LockedOutForPhone but both are substates of Locked and that's what I want to communicate with my consumers.
Is it possible to store the substate internally to distinguish between permitted triggers but expose the superstate to the outside world?
In my example, I distinguish between
LockedOutForEmail
andLockedOutForPhone
but both are substates ofLocked
and that's what I want to communicate with my consumers.