AnsweredAssumed Answered

HELP ! Setting Multiple Assignees on the fly!

Question asked by irenailievska1 on Dec 18, 2015
Latest reply on Dec 21, 2015 by irenailievska1
I kind of hit a wall with Activiti with this one- I need to pass multiple assignees in a task, but the current user chooses the next people. I did it for just one person, but I can't find why I can not do the same thing for more than one person.
It appears as if the object picker selects only the first person and leaves all the rest.
I have created person association in my custom model shown below:

<aspect name="swf:assignees1">
   <associations>
         <association name="swf:assignees1">
         <source>
            <mandatory>false</mandatory>
            <many>false</many>
         </source>
         <target>
            <class>cm:person</class>
            <mandatory>false</mandatory>
            <many>true</many>
         </target>
      </association>
   </associations>
</aspect>   


Then in the current task i set the value of the swf:assignees1 field to a variable in the process. This is so that the next task will use the collection swf_assignees1 with variable assignee reviewAssignee

execution.setVariable('swf_assignees1',task.getVariableLocal('swf_assignees1'));

But in the end I only end up getting only the first value.

Can somebody help me? This is very important for the project I am currently working on.

Thank you in advance,
Irena

Outcomes