<?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 Re: Assign a Workflow User Task to multiple users in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128239#M34791</link>
    <description>&lt;P&gt;Why are you using "Java.type"?&lt;/P&gt;
&lt;P&gt;You may try this approach: &lt;A href="https://github.com/flowable/flowable-engine/blob/main/modules/flowable-secure-javascript/src/test/resources/test-secure-script-task-listener.bpmn20.xml#L19" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/flowable/flowable-engine/blob/main/modules/flowable-secure-javascript/src/test/resources/test-secure-script-task-listener.bpmn20.xml#L19&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 10:39:32 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2022-02-03T10:39:32Z</dc:date>
    <item>
      <title>Assign a Workflow User Task to multiple users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128236#M34788</link>
      <description>&lt;P&gt;In my custom workflow, I want to assign a user Task to multiple users so I have set a variable&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;execution.setVariable('assigneeList', ['admin','signer1']);&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;even tried&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;execution.setVariable('assigneeList', [admin,signer1]);&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is multiInstanceLoopCharacteristics code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;multiInstanceLoopCharacteristics isSequential="false" activiti:collection="assigneeList" activiti:elementVariable="assignee"&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am not able to assign my list of users in the workflow , I am getting errors .&amp;nbsp; Can anyone please help me how I can assign the above list of users to a user Task.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error 1" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1418i77F4B57FCABBDD77/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error 2" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1415i8C0D3F67EE40A88A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error 2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 08:34:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128236#M34788</guid>
      <dc:creator>wattsshane</dc:creator>
      <dc:date>2022-02-03T08:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a Workflow User Task to multiple users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128237#M34789</link>
      <description>&lt;P&gt;Try using the Java approach:&lt;/P&gt;
&lt;PRE&gt;var ArrayList = Java.type("java.util.ArrayList");
var assigneeList= new ArrayList;
assigneeList.add("admin");
assigneeList.add("signer1");
execution.setVariable("assigneeList", assigneeList);&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:44:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128237#M34789</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2022-02-03T09:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a Workflow User Task to multiple users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128238#M34790</link>
      <description>&lt;P&gt;Dear Angel ,&lt;/P&gt;&lt;P&gt;Thanks for your response, Im getting Java error after following your method&lt;/P&gt;&lt;P&gt;This is my listener&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;activiti:field name="script"&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--"-----"------"-----------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var ArrayList = Java.type("java.util.ArrayList");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var assigneeList= new ArrayList;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;assigneeList.add("admin");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;assigneeList.add("signer1");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;execution.setVariable("assigneeList", assigneeList);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;/activiti:field&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;/activiti:taskListener&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kindly assist on this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="java_error.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1416iB76E76908125845B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 10:31:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128238#M34790</guid>
      <dc:creator>wattsshane</dc:creator>
      <dc:date>2022-02-03T10:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a Workflow User Task to multiple users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128239#M34791</link>
      <description>&lt;P&gt;Why are you using "Java.type"?&lt;/P&gt;
&lt;P&gt;You may try this approach: &lt;A href="https://github.com/flowable/flowable-engine/blob/main/modules/flowable-secure-javascript/src/test/resources/test-secure-script-task-listener.bpmn20.xml#L19" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/flowable/flowable-engine/blob/main/modules/flowable-secure-javascript/src/test/resources/test-secure-script-task-listener.bpmn20.xml#L19&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 10:39:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128239#M34791</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2022-02-03T10:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a Workflow User Task to multiple users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128240#M34792</link>
      <description>&lt;P&gt;Worked Perfect, Thanks for the help .....&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 11:36:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/assign-a-workflow-user-task-to-multiple-users/m-p/128240#M34792</guid>
      <dc:creator>wattsshane</dc:creator>
      <dc:date>2022-02-03T11:36:00Z</dc:date>
    </item>
  </channel>
</rss>

