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

cancel
Showing results for 
Search instead for 
Did you mean: 
mtsiak
Active Member II

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

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
angelborroy
Alfresco Employee

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

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
Established Member

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

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
mtsiak
Active Member II

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

@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