KnowledgeOS API Reference
    Preparing search index...

    Class LifecycleEngine

    Index
    • Check if a transition is valid

      Parameters

      Returns boolean

    • Transition to configured state

      Returns Promise<void>

    • Transition to error state

      Parameters

      • err: Error

      Returns Promise<void>

    • Get the component name

      Returns string

    • Get the full state transition history

      Returns readonly StateTransition[]

    • Get valid transitions from current state

      Returns LifecycleState[]

    • Transition to initializing state

      Returns Promise<void>

    • Transition to ready state

      Returns Promise<void>

    • Reset to created state (only from error state)

      Returns void

    • Transition to running state

      Returns Promise<void>

    • Transition to stopped state

      Returns Promise<void>