Appearance
WorkCenterStatusEventState
Type: Object
A single append-only entry in a work centre's status history: the phase transition plus the device status reported at that moment. This history is a separate table from the entity status_events spine and shares no key with it.
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| createdAt | ISO8601! | ISO8601 instant the platform persisted the event. Differs from timestamp for late or backfilled reports. | ||
| customStatus | String | Vendor- or domain-specific status string; non-null only when status is CUSTOM, where it is required and limited to 100 characters. | ||
| fromPhase | ProgressPhase | Phase the work centre left. Null for the first event in a session, i.e. when no prior phase was reported. | ||
| id | WorkCenterStatusEventID! | TypeID of this status event (wcse_ prefix). Events are append-only: once recorded they are never updated or deleted. | ||
| source | 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. | ||
| status | WorkCenterStatusKey! | 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. | ||
| timestamp | ISO8601! | 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. | ||
| toPhase | ProgressPhase! | Phase the work centre entered — the phase it is considered to be in from this event's timestamp until the next event. | ||
| workCenterId | WorkCenterID! | 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. |