06-02-2009 09:28 AM
06-03-2009 02:10 AM
workflowInstance = workflowService.getWorkflowById("xyz");
NodeRef pathToAllAddedDocuments = workflowInstance.workflowPackage;
for(ChildAssociationRef ref : nodeService.getChildAssocs(pathToAllAddedDocuments )){
NodeRef child = ref.getChildRef();
String owner=nodeService.getProperty(child, ContentModel.PROP_OWNER);
//TODO: ADD your code here
}
Now you can get the email from this user via PersonService or what you want to do with it.
<task-node name="task-B1">
…
<task>
…
</task>
<transition name="approve" to="approve" />
<transition name="reject" to="reject">
</task-node>
<task-node name="approve">
<event type="node-enter">
//this class has the logic of the above descriped code.
<action class="de.dmc.NotifyDocumentOwnerAction"/>
</event>
</task-node>
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.