如何在Alfresco中为Aspect属性设置默认值?这是一个约束还是属性本身有一个属性?
这是我的财产:
<constraint name="ac:Priority_Options" type="LIST">
<parameter name="allowedValues">
<list>
<value>Low</value>
<value>Medium</value>
<value>High</value>
</list>
</parameter>
</constraint>
<property name="ac:propPriority">
<title>Priority</title>
<type>d:text</type>
<multiple>false</multiple>
<constraints>
<constraint ref="ac:Priority_Options" />
</constraints>
</property>
答案 0 :(得分:2)
如Additional Property Capabilities中所述:
<property name="ac:propPriority">
<title>Priority</title>
<type>d:text</type>
<multiple>false</multiple>
<default>my default value</default> <!-- !! -->
<constraints>
<constraint ref="ac:Priority_Options" />
</constraints>
</property>