Here it is told how to get a list of children of a NodeRef. Here is the code:
List<ChildAssociationRef> children = nodeService.getChildAssocs(c);
for (ChildAssociationRef childAssoc : children) {
NodeRef childNodeRef = childAssoc.getChildRef();
// Use childNodeRef here.
}
What is the parameter companyHome
, what type is it and the most important is how to get it from the process?