ProductionSu Subscription

workCenterTwinShadowChanged

Topics: Jobs

Streams twin transitions as they are recorded — shadow transitions per operation and for the work centre as a whole, and pace-track transitions (STEADY, SLOWING, ENDED) — from the event bus — so a transition recorded by any node reaches the subscriber. Ends at once for a work centre this tenant cannot see, or when the server runs without an event bus. Requires workCenterBehaviorProfile:read permission.

Returns

WorkCenterTwinEvent!

Arguments

The work centre to follow; omit to follow every work centre of the tenant

Only transitions of this track; omit for both

Possible values (2)
SHADOW

The live shadow: what runs on the machine now, judged against its profile

PACE

The pace track: whether the machine's forecast pace has drifted from its own history, judged after each profile refresh

Exact field SDL
"""
Streams twin transitions as they are recorded — shadow transitions per operation and for the work centre as a whole, and pace-track transitions (STEADY, SLOWING, ENDED) — from the event bus — so a transition recorded by any node reaches the subscriber. Ends at once for a work centre this tenant cannot see, or when the server runs without an event bus. Requires workCenterBehaviorProfile:read permission.
"""
workCenterTwinShadowChanged(
  """
  The work centre to follow; omit to follow every work centre of the tenant
  """
  workCenterId: WorkCenterID
  """Only transitions of this track; omit for both"""
  track: WorkCenterTwinTrack
): WorkCenterTwinEvent! @topic(names: ["jobs"])

Declared on Subscription. Access is checked by the platform for each operation.