SongGuess
    Preparing search index...

    Class Workflow<PARAMS>Abstract

    Type Parameters

    • PARAMS = unknown
    Index
    • Create a batch of instances and return handle for all of them. If a provided id exists, an error will be thrown. createBatch is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached.

      Parameters

      Returns Promise<WorkflowInstance[]>

      A promise that resolves with a list of handles for the created instances.

    • Delete a batch of Workflow instances and their stored state. deleteBatch is limited to 100 instances at a time. Duplicate IDs are deleted once. The result contains one entry for each input position; IDs that do not exist are returned as per-instance errors.

      Parameters

      • instanceIds: string[]

        IDs of the Workflow instances to delete

      Returns Promise<WorkflowBatchDeleteResult>

      A promise that resolves with the successfully deleted instances and any per-instance errors.

    • Get a handle to an existing instance of the Workflow.

      Parameters

      • id: string

        Id for the instance of this Workflow

      Returns Promise<WorkflowInstance>

      A promise that resolves with a handle for the Instance