initialState

fun initialState(deriveInitialState: StateQuery<C, S>): DslStateMachineHandler<S, E, C, A, R>

Defines an expression that will determine the initial state of the state machine based on the values of the context.

Parameters

deriveInitialState

A lambda expression receiving context:C and returning state S.