on Event Push
fun onEventPush(event: E, targetMap: String, targetState: S, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
Defines a push transition on event for a targetMap and targetState.
Parameters
event
The event that will trigger the transition.
target Map
The named stateMap that will be targeted.
target State
The new state within the targetMap
action
The optional action that may be executed.
fun onEventPush(event: E, targetMap: String, targetState: S, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
Defines a push transition on event for a targetMap and targetState when the guard evaluates to true
Parameters
event
The event that will trigger the transition.
target Map
The named stateMap that will be targeted.
target State
The new state within the targetMap
action
The optional action that may be executed.