Enhancement
A historical reference can only point to one object at a time. To do this, you have to select the "Historic storage".
It would be better to have a "versioning" classification for a reference - such as "multiple" and "mandatory".
Implementation
A reference attribute now has a further configuration option Historicization. There are 3 options here:
- Current: Default. Reference to current objects.
- Historical: The value of the attribute is a historical object. If a current object is set, it is replaced by the corresponding historical object when saving.
- Mixed: The value can be either a current or a historical object.
The system selects an associated storage according to the value.
Test
TestReferenceMetaAttribute or manually
- Under Structures > Type demo, assign the object A0 to a DemoTypes.A A0 in the historicalReferences attribute and save.
- Change the value string and save.
- Open the object A0 assigned in the historicalReferences attribute:
- Expectation a dialog with a historical A is opened: The object cannot be edited and the value string has the value before the change.