push Transition
fun pushTransition(startState: S, event: E, targetMap: String, targetState: S, guard: StateGuard<C, A>?, action: AsyncStateAction<C, A, R>?)
Creates a push transition for a startState and triggered by event and guard expression being true
. The transition will change to targetMap and targetState.
Parameters
start State
The transition will apply to the specific state.
event
The event that will trigger the transition
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