I have to prepopulate my model with all options from constraint. How do I set a default value for an aspect property in Alfresco that have multiple flag set to true? Is it even possible to pass array of items to default value?
<property name="aa:allowedTypes">
<title>Allowed types</title>
<type>d:text</type>
<multiple>true</multiple>
<default>cat,dog,chicken</default>
<constraints>
<constraint ref="aa:allowedTypesOption" />
</constraints>
</property>
<constraints>
<constraint name="aa:allowedTypesOption" type="LIST">
<parameter name="allowedValues">
<list>
<value>cat</value>
<value>dog</value>
<value>chicken</value>
</list>
</parameter>
</constraint>
</constraints>
It seems that cat,dog,chicken does not work, nor does ["cat","dog","chicken"]
Edit: Yep, there is no solution to this. It can be set up to fill this field on node creation with policy but not in model.