Sample of usage VisualFSM for Command Line Interface application
ENG | RUS
The graph is being built from source code of FSM‘s implementation. There is no need of custom written configurations for FSM, you can just create new State and Action classes, they would be automatically added to the graph of States and Transitions.
Source code analysis and the graph built are being performed with reflection and declared as a separate module that would allow it to be connected to testing environment.
Authorization and registration process
With Kotlin Coroutines: cli-sample
With RxJava: cli-sample-rx
Generate digraph and tests sample: AuthFSMTests.kt
What is FSM
finite-state machine (FSM) is an abstract machine that can be in exactly one of a finite number
of states at any given time. The
FSM can change from one state to another in response to some