02-14-2013 11:29 AM
02-14-2013 01:47 PM
02-14-2013 05:51 PM
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
var x=10;
for (var i=0; i < x; i++) {
logger.log( "Number of loops: " + i );
}
</activiti:string>
</activiti:field>
</activiti:taskListener>
02-14-2013 06:29 PM
02-18-2013 12:26 PM
for(var i=0; i < bpm_groupAssignees.size(); i++){
var group = groups.getGroup(bpm_groupAssignees.get(i) );
var members = people.getMembers(group);
for(var x in members) {
logger.log("Member is: " + members[x].properties.userName);
}
}
02-20-2013 11:36 AM
02-20-2013 04:38 PM
logger.log( "Size is: " + bpm_groupAssignees.size() );
for(var i=0; i < bpm_groupAssignees.size(); i++){
var members = people.getMembers( bpm_groupAssignees.get(i) );
logger.log( "Groups are: " + bpm_groupAssignees.get(i).properties["cm:name"] );
for(var i in members)
{
memberNames.add(members.properties.userName);
logger.log( "Members are: " + members.properties.userName );
}
}
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.