AnsweredAssumed Answered

multi instance collection on xml

Question asked by dthknt on Dec 15, 2015
Latest reply on Dec 18, 2015 by jbarrez
I'm trying to create a task with a colection for multi insance approvals over some groups. It's an readonly list, so it makes more sense to write it directly on the bpmn xml. I tryed this:


<userTask id="aprovarPCMC" name="Aprovar Plano de Curso e Matriz Curricular" activiti:candidateGroups="#{group}">
<multiInstanceLoopCharacteristics isSequential="true"
             activiti:collection="${java.util.Arrays.asList(&quot;NDE&quot;,&quot;direcao&quot;)}"
             activiti:elementVariable="group">
</multiInstanceLoopCharacteristics>


Where the expression would resolve to:


Arrays.asList("NDE","direcao")


But it gives me an error that says "java could not be resolved".
The User Guide only has examples for getting the list from variable or service. I want it on the xml.
Is it possible ?

Outcomes