Smarter State Transition Mechanism
DESCRIPTION
The state transition logic is implemented in State and based on the Result's nextState
currently. To make StateWalker more flexible we should provide other way to guide StateWalker going through the states.
CONCEPT
A user implements state transition logic should just know the exit point such as "SUCCESS", "RETRY" or "FAIL". The user shouldn't know which state is the next state.
TASKS
- Redesign the code of Transition
- Update the mechanism to find next state
Edited by Arren Ping