Interface FSMHandler

Defines a handler that can register an FSM to receive notifications about changes in the state of the FSM.

interface FSMHandler {
    fsmCancels?(): void;
    fsmError?(err): void;
    fsmStarts?(): void;
    fsmStops?(): void;
    fsmUpdates?(): void;
    preFsmStart?(): void;
    preFsmStop?(): void;
    preFsmUpdate?(): void;
}

Methods

  • When the FSM starts.

    Returns void

    Throws

    CancelFSMException If the FSM must be cancelled.

  • When the FSM enters a terminal state.

    Returns void

    Throws

    CancelFSMException If the FSM must be cancelled.

  • When the FSM runs to new state.

    Returns void

    Throws

    CancelFSMException If the FSM must be cancelled.

Generated using TypeDoc