View Issue Details

IDProjectCategoryView StatusLast Update
000627610000-006: MappingsSpecpublic2020-12-01 16:49
ReporterHock, Christian Assigned ToRandy Armstrong  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Summary0006276: Clarification needed for "content" of the DataTypeDefinition Attribute when used in Sub(Sub)Types for DataTypes
Description

We found a lot of stuff where and how the DataTypeDefiniton is used.

What we didn't find is - how the DataTypeDefiniton Attribute shall be "filled" when it is used in a SubType.

Example:
MySuperType

  • 'a' as string
  • 'b' as int32

MySubType (HasSubType Reference to MySuperType)

  • 'x' as string
  • 'y' as string

The question is now - what shall be the content of the DataTypeDefinition Attribute at Runtime?

  • We assume, it "might" be the collection of all "IsSubTypeOf" References up to "0:Structure".

But, we couldn't find such a statement in any OPC UA Spec.

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

Matthias Damm

2020-11-24 07:58

developer   ~0013292

Last edited: 2020-11-24 08:29

The UANodeset schema DataTypeDefinition.fields contains only the fields defined in the data type, not the fields from the base type.
This is not explicitly defined in Part 6 but this is the way it is implemented in the UANodesets distributed with OPC UA specs.

The DataTypeDefinition Attribute in StructureDefinition .fields contains all fields of a structure including the fields of the base type.
The base type fields come first followed by the fields defined by the subtype.
This is clearly defined in Part 3.

This is defined in OPC UA Part 3
Table 34 – StructureDefinition Structure
Name: fields
Description:
For Structures derived from another Structure DataType this list shall begin with the fields of the baseDataType followed by the fields of this StructureDefinition.

Proposed clarifications:
Part 6 - F.12 DataTypeDefinition - Table F.12 – DataTypeDefinition - fields
Clarify that the fields contain only the fields defined by this DataType.
Add reference to Part 3 and explain that the corresponding attribute contains the full list including fields from the base types.

Randy Armstrong

2020-11-27 09:29

administrator   ~0013309

Fixed in Draft 22.

Jim Luth

2020-12-01 16:49

administrator   ~0013334

Agreed to changes in Telecon.

Issue History

Date Modified Username Field Change
2020-11-23 21:34 Hock, Christian New Issue
2020-11-24 07:58 Matthias Damm Note Added: 0013292
2020-11-24 08:29 Matthias Damm Note Edited: 0013292
2020-11-27 09:29 Randy Armstrong Assigned To => Randy Armstrong
2020-11-27 09:29 Randy Armstrong Status new => resolved
2020-11-27 09:29 Randy Armstrong Resolution open => fixed
2020-11-27 09:29 Randy Armstrong Note Added: 0013309
2020-12-01 16:49 Jim Luth Status resolved => closed
2020-12-01 16:49 Jim Luth Fixed in Version => 1.05
2020-12-01 16:49 Jim Luth Note Added: 0013334