automatic Pop
fun automaticPop(startState: S, targetMap: String?, targetState: S?, guard: StateGuard<C, A>?, action: AsyncStateAction<C, A, R>?)
Create an automatic pop transition when currentState is startState and when guard is true. The transition will target targetMap and targetState
Parameters
start State
The transition will apply to the specific state.
target State
The state after the transition
target Map
The map after the transition
guard
The expression must be true to trigger the transition
action
The optional action will be invoked