<?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: getting a user's candidate tasks without the user's group tasks in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-user-s-candidate-tasks-without-the-user-s-group-tasks/m-p/182789#M135919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a multi tier (3 tiers for example) report approval system where tier 1 can write reports and are passed on to tier 2 to approve and then passed on to tier 3 for approval. But tier 2 guys can also help write reports and their reports only go to tier 3 for approval. Reports sent to people for approval go to an inbox and stay there until they are claimed to be worked on and these would go to the candidate group. Reports you submit can also be rejected back to you if you did a lousy job writing it and these would go to candidate user. We don't use assigned because we want to distinguish reports between waiting to be worked on (unclaimed) and working on it (claimed). I think I am able to get around this by using a NativeTask query and joining the task table with the identity link table like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;Task&amp;gt; nativeResult = taskService.createNativeTaskQuery().sql("select t.ID_, t.NAME_, t.PROC_INST_ID_, t.PROC_DEF_ID_, t.TASK_DEF_KEY_ from ACT_RU_TASK t INNER JOIN ACT_RU_IDENTITYLINK i on t.ID_ = i.TASK_ID_ where i.TYPE_ = 'candidate' AND i.USER_ID_ = '" + userId + "'").list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this seem right to you? Obviously, an API call would be preferred so that I don't have to worry about missing out on internal logic or changing db structure breaking things. Any input would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 19:59:21 GMT</pubDate>
    <dc:creator>frequentcrasher</dc:creator>
    <dc:date>2014-11-21T19:59:21Z</dc:date>
    <item>
      <title>getting a user's candidate tasks without the user's group tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-user-s-candidate-tasks-without-the-user-s-group-tasks/m-p/182787#M135917</link>
      <description>Hi,we have a system where reports can be submitted to a group for review which we set the candidate group to SUPERVISOR in the definition and we have reports that we send to specific people which we set the candidate user to jsmith01 for example. most of the time we just want everything a user is ca</description>
      <pubDate>Tue, 11 Nov 2014 23:34:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-user-s-candidate-tasks-without-the-user-s-group-tasks/m-p/182787#M135917</guid>
      <dc:creator>frequentcrasher</dc:creator>
      <dc:date>2014-11-11T23:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: getting a user's candidate tasks without the user's group tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-user-s-candidate-tasks-without-the-user-s-group-tasks/m-p/182788#M135918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, the idea is that that query gives you all the tasks where you are a candidate for. But i see your point. Its fairly easy added into the query api too. What is the use case you have, why would you wanto distinguish?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 22:19:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-user-s-candidate-tasks-without-the-user-s-group-tasks/m-p/182788#M135918</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-11-19T22:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: getting a user's candidate tasks without the user's group tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-user-s-candidate-tasks-without-the-user-s-group-tasks/m-p/182789#M135919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a multi tier (3 tiers for example) report approval system where tier 1 can write reports and are passed on to tier 2 to approve and then passed on to tier 3 for approval. But tier 2 guys can also help write reports and their reports only go to tier 3 for approval. Reports sent to people for approval go to an inbox and stay there until they are claimed to be worked on and these would go to the candidate group. Reports you submit can also be rejected back to you if you did a lousy job writing it and these would go to candidate user. We don't use assigned because we want to distinguish reports between waiting to be worked on (unclaimed) and working on it (claimed). I think I am able to get around this by using a NativeTask query and joining the task table with the identity link table like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;Task&amp;gt; nativeResult = taskService.createNativeTaskQuery().sql("select t.ID_, t.NAME_, t.PROC_INST_ID_, t.PROC_DEF_ID_, t.TASK_DEF_KEY_ from ACT_RU_TASK t INNER JOIN ACT_RU_IDENTITYLINK i on t.ID_ = i.TASK_ID_ where i.TYPE_ = 'candidate' AND i.USER_ID_ = '" + userId + "'").list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this seem right to you? Obviously, an API call would be preferred so that I don't have to worry about missing out on internal logic or changing db structure breaking things. Any input would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 19:59:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-user-s-candidate-tasks-without-the-user-s-group-tasks/m-p/182789#M135919</guid>
      <dc:creator>frequentcrasher</dc:creator>
      <dc:date>2014-11-21T19:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: getting a user's candidate tasks without the user's group tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-user-s-candidate-tasks-without-the-user-s-group-tasks/m-p/182790#M135920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That looks a correct query yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are always more than welcome to provide a pull request for this so it gets in the API &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:02:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-user-s-candidate-tasks-without-the-user-s-group-tasks/m-p/182790#M135920</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-12-05T14:02:25Z</dc:date>
    </item>
  </channel>
</rss>

