pushTransition

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

startState

The transition will apply to the specific state.

event

The event that will trigger the transition

targetState

The state after the transition

targetMap

The map after the transition

guard

The expression must be true to trigger the transition

action

The optional action will be invoked