Search code examples
alfrescoalfresco-shareactiviti

Is there a way to set the display text for the value in list?


For example, there are some business process. The user is prompted to reject or to approve some document.

Part of the workflow content model:

...
<constraints>
    <constraint type="LIST">
        <parameter name="allowedValues">
            <list>
                <value>Approve</value>
                <value>Reject</value>
            </list>
        </parameter>
    </constraint>
</constraints>
...

Instead of Approve/ Reject I want to display a different text (national, with spaces, etc.). But in scripts I would like to use the same Approve/ Reject values.

Is it possible?


Solution

  • Have you tried this ?

    <constraints>
        <constraint type="LIST">
            <parameter name="allowedValues">
                <list>
                    <value>Approve|Some Approval label</value>
                    <value>Reject|Some Rejection label</value>
                </list>
            </parameter>
        </constraint>
    </constraints>