-->

Is there a way to set the display text for the val

2019-08-17 08:31发布

问题:

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?..

I would be very grateful for the information. Thanks to all.

回答1:

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>