SongGuess
    Preparing search index...

    Class Workflow<PARAMS>Abstract

    Type Parameters

    • PARAMS = unknown
    Index
    • Create a batch of instances and return handles for the created instances and any per-instance errors. createBatch is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached.

      Parameters

      Returns Promise<WorkflowBatchCreateResult>

      A promise that resolves with the created instance handles and any per-instance errors.

    • Create a batch of instances and return handles for the ones that were created. Instances that could not be created, for example because their ID already exists, are omitted from the result without an error.

      Returns Promise<WorkflowInstance[]>

      Use the object form of createBatch instead of the array form.

    • 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