02-20-2008 02:43 PM
<node name="sign">
<action class="org.alfresco.repo.workflow.jbpm.ForEachFork">
<foreach>#{people.getMembers(people.getGroup('GROUP_signers'))}</foreach>
<var>reviewer</var>
</action>
02-21-2008 06:00 AM
<action class="org.alfresco.repo.workflow.jbpm.ForEachFork">
<foreach>
#{people.getMembers(people.getGroup('GROUP_signers')).concat(bw_ulterioriFirmatari)}
</foreach>
<var>reviewer</var>
</action>
<association name="bw:ulterioriFirmatari">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
02-22-2008 12:13 PM
<action class="org.alfresco.repo.workflow.jbpm.ForEachFork">
<foreach>#{
a = new java.util.ArrayList(java.util.Arrays.asList(people.getMembers(people.getGroup('GROUP_signers'))));
a.addAll(bw_ulterioriFirmatari);
a;}</foreach>
<var>reviewer</var>
</action>
02-25-2008 03:09 PM
a = new Array(); a = a.concat(people.getMembers(people.getGroup('GROUP_signers')));
if(typeof bw_ulterioriFirmatari != 'undefined')
for(var i = 0; i < bw_ulterioriFirmatari.size(); i++)
a = a.concat(bw_ulterioriFirmatari.get(i).getNodeRef());
people.getMembers(people.getGroup('GROUP_signers'))
return an ArrayList of NodeRef instances, while the process variable bw:ulterioriFirmatari (that is definde as a multiple association to cmerson), is resolved by the javascript engine as a single object, a JBPMNodeList, that is more or less an ArrayList of JBPMNode. 10-05-2011 08:20 AM
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="listaDocs" access="write" />
<expression>
listaDocs = new Array();
for(var i = 0; i < wfedmp_NodoDoc.size(); i++)
listaDocs = listaDocs.concat(wfedmp_NodoDoc.get(i).getNodeRef());
</expression>
</script>
</action> <action class="org.alfresco.repo.workflow.jbpm.ForEachFork">
<foreach>#{listaDocs}</foreach>
<var>ADoc</var>
</action>
10-13-2011 11:52 AM
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.