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.
String relationName = "{my.model}my_relation"; ParentReference parentReference = new ParentReference( store, parentNode.getReference().getUuid(), null, relationName, relationName); Reference referenceChild = childNode.getReference(); Predicate predicateChild = new Predicate(new Reference[]{referenceChild}, store, null); CMLAddChild addChild = new CMLAddChild(); addChild.setTo(parentReference); addChild.setWhere(predicateChild); CML cml = new CML(); cml.setAddChild(new CMLAddChild[] {addChild}); UpdateResult[] results = repositoryService.update(cml);