tuil
ReferencePackages@mwillbanks/tuil-workflowAPI

WorkflowSnapshot

interface exported by @mwillbanks/tuil-workflow.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-workflow.

export interface WorkflowSnapshot<TState> {
  readonly id: string;
  readonly version: number;
  readonly status: WorkflowStatus;
  readonly state: TState;
  readonly currentStep?: string;
  readonly completedSteps: readonly string[];
  readonly skippedSteps: readonly string[];
  readonly history: readonly string[];
  readonly errors: readonly string[];
  readonly operations: readonly OperationSnapshot[];
  readonly nestedWorkflow?: WorkflowSnapshot<unknown>;
  readonly parallel: readonly WorkflowParallelSnapshot[];
  readonly transitioning: boolean;
  readonly startedAt?: number;
  readonly completedAt?: number;
}

Members

MemberTypeRequiredDescriptionRelated types
idstringYesThe id member uses the string contract.
versionnumberYesThe version member uses the number contract.
statusWorkflowStatusYesThe status member uses the WorkflowStatus contract.WorkflowStatus
stateTStateYesThe state member uses the TState contract.
currentStepstring | undefinedNoThe currentStep member uses the string | undefined contract.
completedStepsreadonly string[]YesThe completedSteps member uses the readonly string[] contract.
skippedStepsreadonly string[]YesThe skippedSteps member uses the readonly string[] contract.
historyreadonly string[]YesThe history member uses the readonly string[] contract.
errorsreadonly string[]YesThe errors member uses the readonly string[] contract.
operationsreadonly OperationSnapshot<unknown>[]YesThe operations member uses the readonly OperationSnapshot<unknown>[] contract.OperationSnapshot
nestedWorkflowWorkflowSnapshot<unknown> | undefinedNoThe nestedWorkflow member uses the WorkflowSnapshot<unknown> | undefined contract.WorkflowSnapshot
parallelreadonly WorkflowParallelSnapshot[]YesThe parallel member uses the readonly WorkflowParallelSnapshot[] contract.WorkflowParallelSnapshot
transitioningbooleanYesThe transitioning member uses the boolean contract.
startedAtnumber | undefinedNoThe startedAt member uses the number | undefined contract.
completedAtnumber | undefinedNoThe completedAt member uses the number | undefined contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-workflow

On this page