When experimenting with the Default Value for an attribute I noticed that it behaves like “Value if Null”, that is if I delete the value in my instance CS automatically sets the value to the Default.
Example:
- For a DEMO asset type I defined a Number attribute COST with the default value 12.
- Create a new DEMO instance A
COST = 12 - Change A for COST = 14, save
COST = 14 - Change A, delete value in COST, save
COST = 12
The same happens for a Classification attribute and for a String attribute.
Not one of the tests I used I set the “Required” to true.
Is this the expected behaviour?