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

2019-08-17 08:28发布

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条回答
beautiful°
2楼-- · 2019-08-17 08:31

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>
查看更多
登录 后发表回答