Hi! Good Day!
Can someone help me with this? I need to set an automatic tagging of file. For example, if all approvers/reviewers approved the file, it will automatically have the "APPROVAL" category/tag.
I set a category in category root. Category Name is 'Document Review Status' and the subcategories are 'Draft', 'Reviewed', 'Approval', 'Published', 'Abandoned'.
I did this code in parallel-review-group-bpmn20.xml. And it has no effect. I'm not sure if my code is right. I don't know how to set an if statement in xml.
—————————————————————————————————————————————————
<!– ADDED CODE –>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
if (wf_requiredApprovePercent = wf_actualPercent)
{cm:name="Approval";}
</activiti:string>
</activiti:field>
</activiti:taskListener>
<!– ADDED CODE –>
—————————————————————————————————————————————————-
Thank you for your help. It will be much appreciated.
Irene