03-08-2011 11:40 AM
03-09-2011 04:14 AM
<extensionElements>
<activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
<activiti:field name="script">
<activiti:string>
var members = people.getMembers(bpm_groupAssignee);
var memberNames = new java.util.ArrayList();
for(var i in members) {
memberNames.add(members[i].properties.userName);
}
execution.setVariable('wf_groupMembers', memberNames);
execution.setVariable('wf_reviewerCount', memberNames.size());
</activiti:string>
</activiti:field>
</activiti:executionListener>
</extensionElements>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.