← All types
Ob Object

ProductionPlanState

A versioned production plan defining how a job will be manufactured

Fields

TypeID of this production plan (ppl_…).

Owning batch form; exclusive with jobId. Each form has independent plans.

jobId

JobIDNullable

TypeID of the job (job_…) this plan manufactures.

name

String!Non-null

Human-readable plan name. Never empty.

version

Int!Non-null

Monotonic version of this plan within its job, starting at 1. Each newly created plan for a job takes the job's highest version + 1; re-upserting an existing plan keeps its version.

Lifecycle state. Only one plan per job may be ACTIVE.

Possible values (3)
DRAFT

A work-in-progress plan: freely editable, and not the plan the job is manufactured from.

ACTIVE

The one plan the job is currently manufactured from. Activating a plan archives every other active plan of the same owner in the same transaction.

ARCHIVED

Superseded and kept only for history — either archived automatically when another plan of the job was activated, or retired by hand.

ISO-8601 timestamp at which the plan was first created. Preserved across upserts of the same plan.

ISO-8601 timestamp of the last write to the plan, including writes that only replaced its planned operations or edges.

Referenced by (4)
Exact type SDL
"""A versioned production plan defining how a job will be manufactured"""
type ProductionPlanState {
  """TypeID of this production plan (`ppl_…`)."""
  id: ProductionPlanID!
  """
  Owning batch form; exclusive with jobId. Each form has independent plans.
  """
  batchComponentId: BatchComponentID
  """TypeID of the job (`job_…`) this plan manufactures."""
  jobId: JobID
  """Human-readable plan name. Never empty."""
  name: String!
  """
  Monotonic version of this plan within its job, starting at 1. Each newly created plan for a job takes the job's highest version + 1; re-upserting an existing plan keeps its version.
  """
  version: Int!
  """Lifecycle state. Only one plan per job may be ACTIVE."""
  status: ProductionPlanStatus!
  """
  ISO-8601 timestamp at which the plan was first created. Preserved across upserts of the same plan.
  """
  createdAt: ISO8601!
  """
  ISO-8601 timestamp of the last write to the plan, including writes that only replaced its planned operations or edges.
  """
  updatedAt: ISO8601!
}