如何在Alfresco中为Aspect属性设置默认值?

时间:2012-04-17 23:37:07

标签: alfresco

如何在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>

1 个答案:

答案 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>