How to set the message properties for the 'Approve' and 'Reject' allowed values message in a Review Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 03:59 AM
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.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2018 01:11 PM
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>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 12:03 AM
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,
Vidhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 11:04 AM
@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
