cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the message properties for the 'Approve' and 'Reject' allowed values message in a Review Task

mtsiak
Star Contributor
Star Contributor

How could I set the message properties of the allowed values in a bpm activitiOutcomeTask? 

e.g. at the alfresco-developer-series/scWorkflowModel.xml at master · jpotts/alfresco-developer-series · GitHub 

the 'Approve' and 'Reject' common allowed values are been displayed in English. 

Thank you in advance.

3 REPLIES 3

angelborroy
Community Manager Community Manager
Community Manager

You can add your own labels in Share form definition: alfresco-developer-series/share-config-custom.xml at 75fd25869e42370a1d2a28fcaa74521a135c0005 · jpot... 

Just include something like this:

<control template="/org/alfresco/components/form/controls/selectone.ftl">
    <control-param name="options">
        ToBeReviewed|Revisar,NoReviewRequired|No Revisar
    </control-param>                  
</control>                                        ‍‍‍
Hyland Developer Evangelist

vidhipanchal
Star Contributor
Star Contributor

You can do like this 

<constraints>
<constraint type="LIST">
<parameter name="allowedValues">
<list>
<value>Approve|{label.finalApprove}</value>
<value>Reject|Final Reject</value>
</list>
</parameter>
</constraint>
</constraints>

You can specify value direct as well use label which is defined in properties file.

Thanks,

Contcentric

Regards,
Vidhi

@jpotts suggested the:

listconstraint.scwf_approveRejectOutcome.Approve=Translated Approve 
listconstraint.scwf_approveRejectOutcome.Reject=Translated Reject

and it works. Thanks again for the replies.

https://github.com/jpotts/alfresco-developer-series/issues/28