Interface WorkflowTaskInstance

Runtime snapshot of a single task inside a workflow instance.

interface WorkflowTaskInstance {
    definitionId: string;
    status: WorkflowTaskStatus;
    assignedRoleId?: string;
    assignedExecutorId?: string;
    startedAt?: string;
    completedAt?: string;
    output?: unknown;
    error?: {
        message: string;
        code?: string;
        details?: unknown;
    };
    metadata?: Record<string, unknown>;
}

Properties

definitionId: string
assignedRoleId?: string
assignedExecutorId?: string
startedAt?: string
completedAt?: string
output?: unknown
error?: {
    message: string;
    code?: string;
    details?: unknown;
}

Type declaration

  • message: string
  • Optional code?: string
  • Optional details?: unknown
metadata?: Record<string, unknown>