Edit Page

Subscribe

The operations for a subscription are similar to the operations for a query. But rather than providing information about the entire item, the purpose of subscriptions is to notify about real-time changes to a manufacturing resource.

Note These operations correspond to the SyncGet verb defined in Part 5 of the ISA-95 standard.

This example query subscribes to changes in a specified set of workResponses, reporting only their id and effective end time.


subscription GetWorkResponse($getWorkResponseId: String) {
    getWorkResponse(id: $getWorkResponseId){
      jobResponses {
      effectiveEnd
    }
  }
}

Try to minimize the payload for subscription operations. Additionally, you need to subscribe only to changes that persist to the knowledge graph. For general event handling, it’s often better to use a BPMN workflow that subscribes to a NATS, MQTT, or OPC UA topic.