<?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 I am not able to get all the tasks under a process id,i get only current task. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/i-am-not-able-to-get-all-the-tasks-under-a-process-id-i-get-only/m-p/40700#M17065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a process instance from process definition,then i have to set the assignee to two tasks under that process instance(process definition contain two user tasks unassigned),But as i get only one/current task (task 1) under process instance i am not able to set the assignee to task 2 in the process instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to set assignee dynamically to each process instance created from process definition,and then get list of tasks for the assignee set previously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 06:26:38 GMT</pubDate>
    <dc:creator>suri_kumar</dc:creator>
    <dc:date>2017-11-20T06:26:38Z</dc:date>
    <item>
      <title>I am not able to get all the tasks under a process id,i get only current task.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/i-am-not-able-to-get-all-the-tasks-under-a-process-id-i-get-only/m-p/40700#M17065</link>
      <description>I am creating a process instance from process definition,then i have to set the assignee to two tasks under that process instance(process definition contain two user tasks unassigned),But as i get only one/current task (task 1) under process instance i am not able to set the assignee to task 2 in th</description>
      <pubDate>Mon, 20 Nov 2017 06:26:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/i-am-not-able-to-get-all-the-tasks-under-a-process-id-i-get-only/m-p/40700#M17065</guid>
      <dc:creator>suri_kumar</dc:creator>
      <dc:date>2017-11-20T06:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to get all the tasks under a process id,i get only current task.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/i-am-not-able-to-get-all-the-tasks-under-a-process-id-i-get-only/m-p/40701#M17066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you mean that you are able to set the assignee of the task as process execution reaches that task (perhaps by using an expression in the assignee such as in&amp;nbsp;&lt;A class="link-titled" href="https://stackoverflow.com/questions/19254627/dynamically-setting-user-task-assignee" title="https://stackoverflow.com/questions/19254627/dynamically-setting-user-task-assignee" rel="nofollow noopener noreferrer"&gt;activiti - Dynamically setting user task assignee - Stack Overflow&lt;/A&gt;&amp;nbsp;) but you're not able to set the assignee for task that are inactive because process execution has not reached them yet? If so that sounds like normal behaviour.&amp;nbsp;One idea to approach this would be to record who you intend to assign the task to when process does reach it. You could store&amp;nbsp;the intended assignee in a process variable using a name like 'task2Assignee'. Then you could query for process instances with a particular user assigned using runtimeSerivice.createProcessInstanceQuery().variableValueEquals("&lt;SPAN&gt;task2Assignee&lt;/SPAN&gt;", user) or you could query for the full list and set the includeProcessVariables option so that the result includes details of your intended assignee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I presume you don't have a problem with finding out what tasks there are as it seems like you don't need to find that out dynamically (but if you did you could do so as per &lt;A class="link-titled" href="https://stackoverflow.com/questions/35695638/is-there-a-way-to-get-tasks-in-activiti-process-definition-without-creating-a-pr" title="https://stackoverflow.com/questions/35695638/is-there-a-way-to-get-tasks-in-activiti-process-definition-without-creating-a-pr" rel="nofollow noopener noreferrer"&gt;java - Is there a way to get tasks in Activiti process definition without creating a process instance? - Stack Overflow&lt;/A&gt;&amp;nbsp;).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 17:57:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/i-am-not-able-to-get-all-the-tasks-under-a-process-id-i-get-only/m-p/40701#M17066</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-01-02T17:57:40Z</dc:date>
    </item>
  </channel>
</rss>

