AnsweredAssumed Answered

setting Pooled Actor problem

Question asked by mangar on Feb 28, 2014
Latest reply on Feb 28, 2014 by mangar
I am using activiti and I am trying to assign a task to a list of actors.  I have them in a String[].  I am trying to launch them in a web script.  I set my vars like this:


Map<QName, Serializable> vars = new HashMap<QName, Serializable>();
vars.put(WorkflowModel.ASSOC_PACKAGE, wfPackage);
vars.put(QName.createQName(AlfrescoModel.WORKFLOW_NAMESPACE,"assignee"),array);


the variable "array" is the String[]

my task def looks like this:


   <userTask id="usertask1" name="my start task" activiti:candidateGroups="${jiswf_assignee}" activiti:formKey="jiswf:myTask">


I get an error saying "Caused by: org.activiti.engine.ActivitiIllegalArgumentException: Expression did not resolve to a string or collection of strings"

how Do I get a task assigned to a group of people without actually creating a group.  What am I doing wrong?

Outcomes