overrides
Use overrides: for an exception: one instance that differs from the others that a template makes. Each key is the browse path of an instance, written as the parent path, a slash and the browse name: /ua:Objects/own:Plant/P2. A key can also be a node id. The values replace the keys of the instance. A list replaces the whole list, and null removes a key. A key that matches no instance is an error (TPL-E017).
Example
templates:
Pump:
params: { id: { type: string } }
instances:
- { browseName: "${id}", typeDefinition: ua:BaseObjectType, componentOf: "${parent}" }
instances:
- { browseName: Plant, typeDefinition: ua:BaseObjectType, organizedBy: /ua:Objects }
- expand: { parent: /ua:Objects/own:Plant, over: [{ id: P1 }, { id: P2 }], use: Pump }
overrides:
/ua:Objects/own:Plant/P2:
displayName: Spare pump
The value
overrides: is a map.