Class WorkflowDefinition<T>

Type Parameters

Hierarchy

  • WorkflowDefinition

Constructors

Properties

name: string
next: { [ name in string | number | symbol]?: (keyof T & string)[] } = {}
places: T
symbol: symbol = ...
tokens: { [ name in string | number | symbol]?: EventToken<any> } = {}
transitions: WorkflowTransition<T>[] = []

Methods

  • Parameters

    • from: keyof T & string
    • to: keyof T & string
    • Optional label: string

    Returns void

  • Parameters

    • state: keyof T & string
    • eventDispatcher: EventDispatcher
    • Optional injector: InjectorContext
    • Optional stopwatch: Stopwatch

    Returns Workflow<T>

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • name: K

    Returns EventToken<ExtractClassType<T[K]>>

Generated using TypeDoc