As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<br>var userName = "admin"; <br>var user = people.getPerson(userName); <br>var model.groups = people.getContainerGroups(user);<br><!– Task Assigner List<String> users = [ 'test', 'admin'] as String[];–><br>execution.setVariable('bpm:assignee', model.groups); <br>
org.activiti.engine.ActivitiIllegalArgumentException: Expression did not resolve to a string or collection of strings
<br>package com.test.activiti;<br><br>import org.activiti.engine.delegate.DelegateExecution;<br>import org.activiti.engine.delegate.JavaDelegate;<br><br>public class executeDelegator implements JavaDelegate {<br> <br> public executeDelegator() {<br><br> System.out.println("test delegate ok");<br><br> }<br><br> <br> public void execute(DelegateExecution arg0) throws Exception {<br><br> System.out.println("Activiti Log Fired!");<br><br> } <br> <br>}
<serviceTask id="alfrescoScripttask1" name="TestScript Task" activiti:class="com.test.activiti.executeDelegator "></serviceTask>