06-23-2008 11:17 AM
<type name="mywf:publicationTask">
<parent>bpm:workflowTask</parent>
[…]
<associations>
<association name="wf:personsPublication">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
[…]
</type>
var predefinedAssocList = …; // arraylist of persons nodeRef
var task = …; // my task node
var JBPMNode = new JavaImporter(Packages.org.alfresco.repo.workflow.jbpm).JBPMNode;
var JBPMNodeList = new JavaImporter(Packages.org.alfresco.repo.workflow.jbpm).JBPMNodeList;
var Commons = {
getServiceRegistry:function(){
// Code to retrieve ServiceRegistry Bean
}
};
var nodeList = new JBPMNodeList();
for(var i = 0; i < predefinedAssocList.size(); i++)
nodeList.add(new JBPMNode(assocList.get(i), Commons.getServiceRegistry()));
task.setVariable("mywf_personsPublication", nodeList);
<config evaluator="node-type" condition="mywf:publicationTask">
<property-sheet>
[…]
<show-association name="mywf:personsPublication" display-label-id="mywf_publicationWF.persons"/>
[…]
<property-sheet>
</config>
09-22-2008 11:40 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.