@bitsinfra/fusee
    Preparing search index...

    Class ObjectRef

    A key of an object type, called from outside workflow code.

    Index
    key: string
    type: string
    • get id(): string

      The key's workflow ID (<type>/<key>).

      Returns string

    • Calls a handler and waits for its durable result.

      Type Parameters

      • R = unknown
      • A = unknown

      Parameters

      Returns Promise<R>

    • Clears one field, or (none named) the whole state; the key remains.

      Parameters

      Returns Promise<EditResult>

    • Deletes the key: its run ends and its state with it; the next call starts empty.

      Returns Promise<void>

    • The key's run: its journal, and object with its state and pending calls.

      Returns any

    • Calls a handler without waiting for its result: resolves once the call is accepted.

      Type Parameters

      • A = unknown

      Parameters

      Returns Promise<void>

    • The committed state ({} for a key never called), once it is durable.

      Type Parameters

      • T = Record<string, unknown>

      Returns Promise<T>