← All types
ProductionOb Object

WorkCenterStatusEventState

A single entry in a work centre's status history: the phase transition plus the device status reported at that moment, held until the status changes. Only lastSeenAt moves after the event is written. This history is a separate table from the entity status_events spine and shares no key with it.

Fields

Audit record when this event has been voided or superseded; null otherwise

TypeID of this status event (wcse_ prefix). Events are append-only: once recorded they are never updated or deleted.

TypeID (wcr_ prefix) of the work centre that transitioned. Every event belongs to exactly one work centre and is scoped to the caller's tenant.

Phase the work centre left. Null for the first event in a session, i.e. when no prior phase was reported.

Possible values (7)
UNKNOWN

Reported status has no known operational phase

SETUP

Machine setup / makeready

RUNNING

Active production run

CLEANUP

Post-run cleanup

IDLE

Machine idle, awaiting work

MAINTENANCE

Scheduled or unscheduled maintenance

STOPPED

Machine stopped (error or manual halt)

Phase the work centre entered — the phase it is considered to be in from this event's timestamp until the next event.

Possible values (7)
UNKNOWN

Reported status has no known operational phase

SETUP

Machine setup / makeready

RUNNING

Active production run

CLEANUP

Post-run cleanup

IDLE

Machine idle, awaiting work

MAINTENANCE

Scheduled or unscheduled maintenance

STOPPED

Machine stopped (error or manual halt)

Device status reported alongside the transition (JMF DeviceStatus plus ERROR). CUSTOM means the real value is carried in customStatus. Unrecognised persisted values read back as UNKNOWN.

Possible values (12)
UNKNOWN

Status unknown or not reported

IDLE

Machine idle, awaiting work

READY

Ready to run

SETUP

Machine setup / makeready

RUNNING

Active production run

PAUSED

Production paused

CLEANUP

Post-run cleanup

STOPPED

Machine stopped

DOWN

Device reported down

MAINTENANCE

Scheduled or unscheduled maintenance

ERROR

Device-level error or fault condition

CUSTOM

Vendor- or domain-specific status; see customStatus

Vendor- or domain-specific status string; non-null only when status is CUSTOM, where it is required and limited to 100 characters.

source

String!Non-null

Provenance tag for how the event reached the platform (e.g. API, MQTT, MANUAL). Never null — defaults to "API" when the recorder omits it.

metadata

[Dictionary!]!Non-null

Optional key-value metadata supplied when the event was recorded

ISO8601 instant the transition actually occurred, as reported by the source. This is the ordering and filtering key for the history; it may precede createdAt when events are backfilled.

ISO8601 instant the platform persisted the event. Differs from timestamp for late or backfilled reports.

ISO8601 instant the held status was last observed again. A status is held until it changes, so a repeat refreshes this instead of appending an event; equals timestamp until the status is seen again.

Referenced by (7)
Exact type SDL
"""
A single entry in a work centre's status history: the phase transition plus the device status reported at that moment, held until the status changes. Only lastSeenAt moves after the event is written. This history is a separate table from the entity status_events spine and shares no key with it.
"""
type WorkCenterStatusEventState {
  """
  Audit record when this event has been voided or superseded; null otherwise
  """
  correction: WorkCenterStatusEventCorrection
  """
  TypeID of this status event (`wcse_` prefix). Events are append-only: once recorded they are never updated or deleted.
  """
  id: WorkCenterStatusEventID!
  """
  TypeID (`wcr_` prefix) of the work centre that transitioned. Every event belongs to exactly one work centre and is scoped to the caller's tenant.
  """
  workCenterId: WorkCenterID!
  """
  Phase the work centre left. Null for the first event in a session, i.e. when no prior phase was reported.
  """
  fromPhase: ProgressPhase
  """
  Phase the work centre entered — the phase it is considered to be in from this event's timestamp until the next event.
  """
  toPhase: ProgressPhase!
  """
  Device status reported alongside the transition (JMF DeviceStatus plus ERROR). CUSTOM means the real value is carried in customStatus. Unrecognised persisted values read back as UNKNOWN.
  """
  status: WorkCenterStatusKey!
  """
  Vendor- or domain-specific status string; non-null only when status is CUSTOM, where it is required and limited to 100 characters.
  """
  customStatus: String
  """
  Provenance tag for how the event reached the platform (e.g. API, MQTT, MANUAL). Never null — defaults to "API" when the recorder omits it.
  """
  source: String!
  """Optional key-value metadata supplied when the event was recorded"""
  metadata: [Dictionary!]!
  """
  ISO8601 instant the transition actually occurred, as reported by the source. This is the ordering and filtering key for the history; it may precede createdAt when events are backfilled.
  """
  timestamp: ISO8601!
  """
  ISO8601 instant the platform persisted the event. Differs from timestamp for late or backfilled reports.
  """
  createdAt: ISO8601!
  """
  ISO8601 instant the held status was last observed again. A status is held until it changes, so a repeat refreshes this instead of appending an event; equals timestamp until the status is seen again.
  """
  lastSeenAt: ISO8601!
}