cancel
Showing results for 
Search instead for 
Did you mean: 

Query association with Alfresco WS 2.1? -now it's different!

isanalon
Champ in-the-making
Champ in-the-making
Hi every1:
   I used to query associations using the following code:

       
Association[] assoc = {new Association("my:ClausulaPliegoC", AssociationDirectionEnum.source)};
          
       try {
          queryAssociated = repositoryService.queryAssociated(node, assoc);
          ResultSet associatedResultSet = queryAssociated.getResultSet();
          ResultSetRow[] rows = associatedResultSet.getRows();

But in Alfresco WS 2.1 the class AssociationDirectionEnum doesn't exist and also some of the actions above can't be performed. How do you query associated nodes using this version of Af WS?
BTW, I was trying the new version because I couldn't create associations with earlier versions of Alfresco Webservices (1.4) (see my earlier post on that, with still no answers)
Is there any version where both of these features -creation and query of associations- are fully functional?

I'll be very grateful if someone helps me, this problem has been driving me nuts for a long time.
1 REPLY 1

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

We have removed the enum classes from the WSDL as they cause issues with some clients.  IN this case it has been replaced with a string value that can be either "source" or "target".

Querying and creating associations should indeed work in 2.1

Cheers,
Roy