AsyncTransition

open class AsyncTransition<S, E, C, A, R>(val targetState: S? = null, val targetMap: String? = null, val automatic: Boolean = false, val type: TransitionType = TransitionType.NORMAL, val action: AsyncStateAction<C, A, R>? = null)

Inheritors

Constructors

Link copied to clipboard
constructor(targetState: S? = null, targetMap: String? = null, automatic: Boolean = false, type: TransitionType = TransitionType.NORMAL, action: AsyncStateAction<C, A, R>? = null)

Properties

Link copied to clipboard
val action: AsyncStateAction<C, A, R>? = null
Link copied to clipboard
val automatic: Boolean = false
Link copied to clipboard
val targetMap: String? = null
Link copied to clipboard
val targetState: S? = null
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.