<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Alfresco REST API where clause reference in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135992#M36540</link>
    <description>&lt;P&gt;Hi Angel,&lt;/P&gt;&lt;P&gt;We previously used the "where" clause, because we are trying to retrieve all tasks that are assigned to a candidate group, for a specific users of this group.&lt;/P&gt;&lt;P&gt;If we don't set this clause, no taks are returned, because, as stated in the API docs "&lt;SPAN&gt;Tasks are returned for which the authenticated user is the assignee or a candidate.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;We reached this part of the code, and although I don't fully understand it, it seems that is not capable to handle OR operations. I will wait a bit to see whether someone faced the same problem.&lt;/P&gt;&lt;P&gt;For the record, we tried using OR keyword, using ldap-style operators (|(clause1)(clause2)), usgin java-like operators (| and || between clauses), and no one seems to be working...&lt;/P&gt;&lt;P&gt;Thanks again for your responses&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 09:48:32 GMT</pubDate>
    <dc:creator>narkuss</dc:creator>
    <dc:date>2021-06-14T09:48:32Z</dc:date>
    <item>
      <title>Alfresco REST API where clause reference</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135990#M36538</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are trying to set a logical OR in Alfresco REST API where clause, especifically on task endpoint from workflow REST API. We are not sure whether this is possible or not, and we are unable to find any referencea on these "where" clauses syntax.&lt;/P&gt;&lt;P&gt;Is what we are trying possible? Is there any reference documentation about these clauses in REST API?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 08:12:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135990#M36538</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2021-06-14T08:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco REST API where clause reference</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135991#M36539</link>
      <description>&lt;P&gt;From the source code:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/master/remote-api/src/main/java/org/alfresco/rest/workflow/api/impl/TasksImpl.java#L174" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/master/remote-api/src/main/java/org/alfresco/rest/workflow/api/impl/TasksImpl.java#L174&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I guess that "where" parameter is missed. So, likely, this option is not available from REST API.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 09:16:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135991#M36539</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-06-14T09:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco REST API where clause reference</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135992#M36540</link>
      <description>&lt;P&gt;Hi Angel,&lt;/P&gt;&lt;P&gt;We previously used the "where" clause, because we are trying to retrieve all tasks that are assigned to a candidate group, for a specific users of this group.&lt;/P&gt;&lt;P&gt;If we don't set this clause, no taks are returned, because, as stated in the API docs "&lt;SPAN&gt;Tasks are returned for which the authenticated user is the assignee or a candidate.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;We reached this part of the code, and although I don't fully understand it, it seems that is not capable to handle OR operations. I will wait a bit to see whether someone faced the same problem.&lt;/P&gt;&lt;P&gt;For the record, we tried using OR keyword, using ldap-style operators (|(clause1)(clause2)), usgin java-like operators (| and || between clauses), and no one seems to be working...&lt;/P&gt;&lt;P&gt;Thanks again for your responses&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 09:48:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135992#M36540</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2021-06-14T09:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco REST API where clause reference</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135993#M36541</link>
      <description>&lt;P&gt;If anyone interested, here's the solution:&lt;/P&gt;&lt;P&gt;We were assigning tasks to a candidateGroup, not candidateUsers. So, when retrieving tasks through the /task endpoint, we had to set the "where" clause to "(candidateGroup=GROUP_XXX)". Without this clause, no results were returned.&lt;/P&gt;&lt;P&gt;The solution is to set the "where" clause to "(candidateUser=&amp;lt;username&amp;gt;)". Looking at the &lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/804c70d7f2ac33c28506b1105ed739b8138266f1/remote-api/src/main/java/org/alfresco/rest/workflow/api/impl/TasksImpl.java#L250" target="_blank" rel="noopener nofollow noreferrer"&gt;code&lt;/A&gt;, when this variable is set, it looks for all user's groups that are candidateGroup for existing tasks.&lt;/P&gt;&lt;P&gt;This clause is used in another REST API endpoints. This solution is useful for this specific use case, I'm not sure whether other "where" clauses from other endpoints will be able to handle an OR operator.&lt;/P&gt;&lt;P&gt;Hope this helps someone&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 10:52:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135993#M36541</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2021-06-14T10:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco REST API where clause reference</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135994#M36542</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/77972"&gt;@narkuss&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for providing your update. I've made this an accepted solution - since you've found an answer and this will hopefully help other users.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 16:02:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-rest-api-where-clause-reference/m-p/135994#M36542</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-06-14T16:02:36Z</dc:date>
    </item>
  </channel>
</rss>

