Anchorage API reference
    Preparing search index...

    Outcome of the resume attempt a decision triggers.

    interface ResumeOutcome {
        attempted: boolean;
        code?: string;
        error?: string;
        ok?: boolean;
        summary?: unknown;
    }
    Index

    Properties

    attempted: boolean

    false when no resumeRun is wired — the caller resumes separately.

    code?: string

    The reason.code the failed resume's error carried, if any. SUSPENSION_CHANGED: the step left the suspension this decision was for, and a redrive is refused again. RUN_NOT_SUSPENDED: the run was not suspended when the resume read it; read the run's status to learn whether it has ended, which refuses every redrive. RUN_STATE_UNREADABLE: the run's state could not be read; a redrive can succeed once it can.

    error?: string

    The failed resume's message when the thrown value carries a reason code or a 4xx status, as a refusal RunnerRuntime throws in process through resumeViaRuntime does. The message of any other failure can name storage or deployment detail, so it is internal error here. The original is logged: for an answer read from a run or thread object, on that reader's route-internal-error line, and for a failure in process, on the approvals.resume line and in the approval.resume audit event.

    ok?: boolean
    summary?: unknown

    RunSummary (or whatever resumeRun returns) on success.