Skip to content

WorldModelNode

Object

A node of the World Model: one typed thing, such as a step definition, a dock door, a run, or a deviation found on a run. Its type decides its plane and which properties it carries.

Fields

FieldTypeDescription
idID!

The node’s stable identifier, e.g. pdef:trailer-turn@1. Safe to hold in client code.

typeString!

The node’s World Model type, e.g. ProcessExecution. Described by worldModelTypes.

planeWorldModelPlane!

The plane the node’s type belongs to.

labelString

A human-readable name, when the node has one.

propertiesJSON!

The node’s properties as a JSON object, keyed by property name. Which properties exist is described by the node’s type. Properties marked below the trust boundary are never returned.

edges[WorldModelEdge!]!

The node’s edges, optionally restricted by direction and edge type, ordered by edge type then id. Only edges in force are returned: superseded attachments and edges whose other end has been retained out are omitted.

Arguments
NameTypeDescription
directionWorldModelEdgeDirection!

Which edges to return relative to this node.

Default: BOTH

types[String!]

If provided, only edges of these types, e.g. ["contains", "conforms_to"].

firstInt!

Returns at most the first n edges.

Default: 100