<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to access assignee inside multi instance userTask in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-assignee-inside-multi-instance-usertask/m-p/100292#M69466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been racking my brains over the following problem the last couple of days and can't find any documentation about how to go forward. I have made slight changes to the activiti parallel review task in Alfresco, which works like a charm, accept for the fact that I can't seem to accesss that "local" assignee in the multi instance review task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I understand it, the flow of the vars is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- bpm_assignees contains a collection of the selected users which is broken down into assignees using the multiInstanceLoopCharacteristics element:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;multiInstanceLoopCharacteristics isSequential="false" activiti:collection="bpm_assignees" activiti:elementVariable="reviewAssignee"&amp;gt;&amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Each member of the bpm_assignees collection is then assigned to the process variable reviewAssignee.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the userTask I have added the activiti:assignee parameter to map the process (username property) value of reviewAssignee to the task's assignee:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;userTask id="alfrescoUsertask1" name="Review" activiti:assignee="${reviewAssignee.properties.userName}" activiti:formKey="wf:activitiReviewTask"&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, after the multi-instance userTask I have a mailTask with a script to send a mail to the iniator about the outcome in which I'd like to use the assignee's name (John Doe said: Approve e.g.):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mail.parameters.text = assignee + " said: " + wf_reviewOutcome + "\n"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;No matter what I do, I allways end up with an error saying "ReferenceError: "assignee" is not defined" (or whatever variable I substitute assignee for, like reviewAssignee or bpm_assignee e.g.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can the assignee (process) variable be transported from the multi-instance userTask to the mailTask?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2012 09:34:05 GMT</pubDate>
    <dc:creator>mrvanes1</dc:creator>
    <dc:date>2012-05-08T09:34:05Z</dc:date>
    <item>
      <title>How to access assignee inside multi instance userTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-assignee-inside-multi-instance-usertask/m-p/100292#M69466</link>
      <description>I have been racking my brains over the following problem the last couple of days and can't find any documentation about how to go forward. I have made slight changes to the activiti parallel review task in Alfresco, which works like a charm, accept for the fact that I can't seem to accesss that "loc</description>
      <pubDate>Tue, 08 May 2012 09:34:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-assignee-inside-multi-instance-usertask/m-p/100292#M69466</guid>
      <dc:creator>mrvanes1</dc:creator>
      <dc:date>2012-05-08T09:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to access assignee inside multi instance userTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-assignee-inside-multi-instance-usertask/m-p/100293#M69467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think what you're looking for is a multi-instance sub process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In that sub process you can then include a user task and the mail task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because they are in the same multi-instance sub process you can share local variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 09:19:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-assignee-inside-multi-instance-usertask/m-p/100293#M69467</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-05-09T09:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to access assignee inside multi instance userTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-assignee-inside-multi-instance-usertask/m-p/100294#M69468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Tijs for the answer, this was exactly the push in the right direction I needed!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 19:38:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-assignee-inside-multi-instance-usertask/m-p/100294#M69468</guid>
      <dc:creator>mrvanes1</dc:creator>
      <dc:date>2012-05-09T19:38:35Z</dc:date>
    </item>
  </channel>
</rss>

