Enhancement
A tl:DefaultProvider calculates the default for a TLStructuredTypePart for a new object, based on the context.
There shall be a tl:DefaultProvider that does this via an expression.
Usage
A tl:DefaultProvider tl:DefaultByExpression has been added where the default is calculated via a configured expression. FOR EXAMPLE:
<property name="dateWithDefault" type="tl.core:Date" > <annotations> <default-value> <default-by-expression value="today()" /> </default-value> </annotations> </property>
Test
- TestDefaultByExpression.script.xml