AnsweredAssumed Answered

Problem with Remove association

Question asked by nimind on Jun 25, 2007
Latest reply on Jun 28, 2007 by nimind

i´m trying to remove an association using this method:

private void removeAssociations(Reference referFrom,Reference referTo,String type)throws Exception {
   Predicate predFrom = new Predicate(new Reference[]{referFrom},STORE,null);
    Predicate predTo = new Predicate(new Reference[]{referTo},STORE,null);
   CMLRemoveAssociation rmas = new CMLRemoveAssociation(predFrom,null,predTo,null,type);
   CML cml = new CML();
   cml.setRemoveAssociation(new CMLRemoveAssociation[]{rmas});
   UpdateResult[] r =  WebServiceFactory.getRepositoryService().update(cml);

Any exception was thrown and the association was not removed

Do i need to do something more?