Skip to content

Variable: WorkflowRun ​

ts
const WorkflowRun: z.ZodObject<{
  context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
  correlationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  createdAt: z.ZodCoercedDate<unknown>;
  currentStepId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  decisionId: z.ZodOptional<z.ZodNullable<z.ZodGUID>>;
  definitionId: z.ZodGUID;
  definitionKey: z.ZodString;
  definitionVersion: z.ZodNumber;
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  finishedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
  id: z.ZodGUID;
  replayOf: z.ZodOptional<z.ZodNullable<z.ZodObject<{
     runId: z.ZodGUID;
     stepId: z.ZodString;
  }, z.core.$strip>>>;
  startedAt: z.ZodCoercedDate<unknown>;
  status: z.ZodEnum<{
     cancelled: "cancelled";
     completed: "completed";
     failed: "failed";
     running: "running";
     waiting_callback: "waiting_callback";
     waiting_collection: "waiting_collection";
     waiting_manual: "waiting_manual";
  }>;
  subjectId: z.ZodGUID;
  temporalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  temporalWorkflowId: z.ZodString;
  tenantId: z.ZodGUID;
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  trigger: z.ZodDefault<z.ZodEnum<{
     api: "api";
     console: "console";
     replay: "replay";
  }>>;
  updatedAt: z.ZodCoercedDate<unknown>;
}, z.core.$strip>;

One execution of a workflow definition for one subject. Mirrors a Temporal workflow execution.

Released under the Apache-2.0 License.