SimpleAsyncTransition

open class SimpleAsyncTransition<S, E, C, A, R>(startState: S, event: E?, targetState: S?, targetMap: String?, automatic: Boolean, type: TransitionType, action: AsyncStateAction<C, A, R>?) : AsyncTransition<S, E, C, A, R>

Inheritors

Constructors

Link copied to clipboard
constructor(startState: S, event: E?, targetState: S?, targetMap: String?, automatic: Boolean, type: TransitionType, action: AsyncStateAction<C, A, R>?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun execute(context: C, instance: AsyncStateMapInstance<S, E, C, A, R>, arg: A?): R?
open suspend fun execute(context: C, sourceMap: AsyncStateMapInstance<S, E, C, A, R>, targetMap: AsyncStateMapInstance<S, E, C, A, R>?, arg: A?): R?

Executed exit, optional and entry actions specific in the transition.

Link copied to clipboard

This function provides an indicator if a Transition is internal or external. When there is no targetState defined a Transition is considered internal and will not trigger entry or exit actions.