05-09-2011 05:00 AM
var risposte = node.childAssocs["crl:risposteAssociate"];
List<ChildAssociationRef> risposteAssociate = nodeService.getChildAssocs(node,….);
for (ChildAssociationRef childAssocRef : risposteAssociate) {
// do something with each document in the workflow package
NodeRef risposta = childAssocRef.getChildRef();
String dataRisposta = nodeService.getProperty(risposta , arg1)
}
05-24-2011 06:38 AM
String CRL_MODEL_URI = "TheModelURIThatYouHaveInYourCustomModel";
QName ASSOC_NAME_RISPOSTE_ASSOCIATE = QName.createQName(CRL_MODEL_URI, "risposteAssociate");
List<ChildAssociationRef> risposteAssociate = nodeService.getChildAssocs(node, RegexQNamePattern.MATCH_ALL, ASSOC_NAME_RISPOSTE_ASSOCIATE);
Hope this helps.
05-26-2011 04:04 AM
List<ChildAssociationRef> nodes = nodeService.getChildAssocs(node);
List<ChildAssociationRef> risposteAssociate = new List<ChildAssociationRef>();
for (ChildAssociationRef element : nodes) {
if ("risposteAssociate".equalsIgnoreCase(element.getTypeQName().toString())) {
risposteAssociate.add(element);
}
}
But the OpenPj solution is smarter
08-08-2016 11:49 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.