Anchorage API reference
    Preparing search index...

    Additive run-lifecycle operations returned by createDoRunTopology.

    interface DoRunLifecycleTopology {
        dispatchStatus(
            workflowId: string,
            runId: string,
        ): Promise<RunSummary | undefined>;
        persistedStart(
            workflowId: string,
            runId: string,
        ): Promise<PersistedStartResult<RunSummary> | undefined>;
        resume(
            workflowId: string,
            runId: string,
            body: unknown,
            requestedBy: string,
            requestedByKind: "human" | "service" | "agent" | "system",
        ): Promise<RunSummary>;
        resumeRecord(
            record: ApprovalRecord,
            decision: ApprovalDecision,
        ): Promise<RunSummary>;
        start(input: DoRunStartInput): Promise<RunSummary>;
        startLiveness(workflowId: string, runId: string): Promise<boolean>;
        startPrincipal(
            workflowId: string,
            runId: string,
        ): Promise<StartPrincipalReceipt | undefined>;
        status(workflowId: string, runId: string): Promise<RunSummary | undefined>;
        terminate(
            workflowId: string,
            runId: string,
            principal: ExecutionPrincipal,
            replayOnly?: boolean,
        ): Promise<RunSummary>;
        timeOut(
            workflowId: string,
            runId: string,
            cas: RunLifecycleCas,
            principal: ExecutionPrincipal,
        ): Promise<RunSummary>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • createRunRouter's resume thunk.

      Parameters

      • workflowId: string
      • runId: string
      • body: unknown
      • requestedBy: string
      • requestedByKind: "human" | "service" | "agent" | "system"

      Returns Promise<RunSummary>