Step Types

Node.js SDK - Step execution type definitions

StepExecutionStatusType

Possible statuses for a step execution.

type StepExecutionStatusType = 'ENQUEUED' | 'PROCESSING' | 'SUCCESS' | 'ERROR';

StepExecutionStatus

Status of a step execution, as returned by the API.

Prop

Type

StepsRunParams

Parameters for running a workflow step.

Prop

Type

Type Guards

isStepExecutionComplete(status)

Returns true if the step execution has reached a terminal state.

isStepExecutionSuccess(status)

Returns true if the step execution completed successfully.

isStepExecutionError(status)

Returns true if the step execution failed with an error.

import { isStepExecutionSuccess } from 'docutray';

if (isStepExecutionSuccess(status)) {
  console.log('Step completed:', status.data);
}

On this page