I've copied most of the default activiti parallel Review Task and want to make some slight modifications. One of them is sending an email, containing a.o. the name of the assignee. The multiInstanceLoopCharacteristics is defined like this (default):
<multiInstanceLoopCharacteristics isSequential="false" activiti:collection="bpm_assignees" activiti:elementVariable="reviewAssignee">
<completionCondition>${wf_reviewedCount >= wf_reviewerCount}</completionCondition>
</multiInstanceLoopCharacteristics>
The accompanying userTask is defined like this:
<userTask id="alfrescoUsertask1" name="Review" activiti:assignee="${reviewAssignee.properties.userName}" activiti:formKey="wf:activitiReviewTask">
I'd like to reference the name (and maybe other properties, but name is most important) of the loop Element reviewAssignee, but Alfresco keeps erroring out on references like this:
mail.parameters.text = reviewAssignee.properties.userName + " said: " + wf_reviewOutcome + "\n"
Saying "reviewAssignee" is not defined. The same is true when I use assignee?!What's the trick to use the "local" loop Element's assignee values in the mail script?