AnsweredAssumed Answered

fetching associations using the alfresco WS api

Question asked by timv on Sep 6, 2006
Latest reply on Oct 3, 2006 by fchevance
How can I fetch associations using the alfresco WS api?

Reference node = new Reference(STORE, null, nodepath);
Association[] assoc = {new Association("my:association", AssociationDirectionEnum.source)};
QueryResult queryAssoc = repositoryService.queryAssociated(node, assoc);
ResultSet resultSetAssoc = queryAssoc.getResultSet();

It gives me no results, although the node clearly has an association which is called my:association.
I think there's something wrong with the creation of the Association object. I did not found any documentation of it.. can someone tell me whether the assiocationType is used is correct, and explane me how the AssociationDirectionEnum works?