AsyncGuardedTransition

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

Constructors

Link copied to clipboard
constructor(startState: S, event: E?, targetState: S?, targetMap: String?, automatic: Boolean, type: TransitionType, guard: StateGuard<C, A>, 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
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
fun guardMet(context: C, arg: A?): Boolean

This function will invoke the guard expression using the provided context to determine if transition can be considered.

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.