As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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 }
<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>