<?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: List tasks by list of key : missing feature? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199546#M152676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, my previous code with the or() doesn't work. If you look at the or() implementation, there's only one "key" variable that is overridden each time you can the taskDefinitionKey()…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 12:43:01 GMT</pubDate>
    <dc:creator>bam</dc:creator>
    <dc:date>2014-10-28T12:43:01Z</dc:date>
    <item>
      <title>List tasks by list of key : missing feature?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199543#M152673</link>
      <description>Hello,I would like to do one simple query to retrieve a list of tasks : "Please give me tasks A and B".I don't want to use the task name, as it's written in human-readable French and not a technical ID in my processes.I want to use the task definition key, which is my technical id, that I can use in</description>
      <pubDate>Mon, 27 Oct 2014 11:04:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199543#M152673</guid>
      <dc:creator>bam</dc:creator>
      <dc:date>2014-10-27T11:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: List tasks by list of key : missing feature?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199544#M152674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;/** &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * Only select tasks with the given taskDefinitionKey.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * The task definition key is the id of the userTask:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * &amp;amp;lt;userTask id="xxx" …/&amp;amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; **/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; T taskDefinitionKey(String key);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the or() function to combine them if you need A and B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 10:04:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199544#M152674</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-28T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: List tasks by list of key : missing feature?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199545#M152675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for you reply. I know &lt;/SPAN&gt;&lt;EM&gt;taskDefinitionKey(&amp;lt;id&amp;gt;)&lt;/EM&gt;&lt;SPAN&gt; exist, like explained in my post, but it's not working with a list of values like &lt;/SPAN&gt;&lt;EM&gt;taskNameIn(&amp;lt;list&amp;gt;)&lt;/EM&gt;&lt;SPAN&gt; does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the &lt;/SPAN&gt;&lt;EM&gt;or()&lt;/EM&gt;&lt;SPAN&gt; predicate would result in something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;taskQuery = taskQuery.or();&lt;BR /&gt;for (String taskName : taskNames) {&lt;BR /&gt; taskQuery = taskQuery.taskDefinitionKey(taskName);&lt;BR /&gt;}&lt;BR /&gt;taskQuery = taskQuery.endOr();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of simply calling &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;taskQuery = taskQuery.taskDefinitionKeyIn(taskNames);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that should be one useful function to add to the engine. Don't you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 10:22:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199545#M152675</guid>
      <dc:creator>bam</dc:creator>
      <dc:date>2014-10-28T10:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: List tasks by list of key : missing feature?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199546#M152676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, my previous code with the or() doesn't work. If you look at the or() implementation, there's only one "key" variable that is overridden each time you can the taskDefinitionKey()…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 12:43:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199546#M152676</guid>
      <dc:creator>bam</dc:creator>
      <dc:date>2014-10-28T12:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: List tasks by list of key : missing feature?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199547#M152677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is indeed correct. Im not sure about the query, I havent seen the use case before where you are only interested in tasks using it;s BPMN id … typically people have inboxes of various tasks instead only specific tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you think it is a good feature, you are always more than welcome to provide a pull request for it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 15:06:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/list-tasks-by-list-of-key-missing-feature/m-p/199547#M152677</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-31T15:06:10Z</dc:date>
    </item>
  </channel>
</rss>

