通用状态机
current state == event ==> next state (and may trigger some actions)
- maven
<dependency>
<groupId>io.github.topicstudy</groupId>
<artifactId>state-machine</artifactId>
<version>RELEASE</version>
</dependency>
- demo: cn.topicstudy.statemachine.common.entity.StateMachineTest.checkCanStateFlow