<?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: Creating a task within a task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190541#M143671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SQL Server 2008 R2 running on Windows 2008 server&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 17:41:00 GMT</pubDate>
    <dc:creator>shikarishambu</dc:creator>
    <dc:date>2015-06-25T17:41:00Z</dc:date>
    <item>
      <title>Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190532#M143662</link>
      <description>I have a scenario where an user who is working on a task creates another task for a different person. Both these users can work on their tasks in parallel and they can complete in whatever orderWhat is the best way to handle this. Some questions I have are1. Should the second task be treated as a su</description>
      <pubDate>Thu, 21 May 2015 16:14:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190532#M143662</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2015-05-21T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190533#M143663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. would be the way I would choose. If they can be completed in whatever order you probably keep it as flexible as possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 15:23:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190533#M143663</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-05-28T15:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190534#M143664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. I am now running into a different issue related to creating the second task as a subtask of the first. I need to list all tasks including subtasks under a process instance. It looks like the subtask is not associated to the process instance. And, I need to get all tasks first and then query each one for its subtasks. Is there a way to do this without having the query every task for its subtasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did come across this old post - not sure if there is a ticket - &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/java-api-get-tasks-and-subtasks-processinstanceid" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/java-api-get-tasks-and-subtasks-processinstanceid&lt;/A&gt;&lt;SPAN&gt;. I will be happy to create one. Unfortunately the link from activity.org to the JIRA takes me here - &lt;/SPAN&gt;&lt;A href="https://www.codehaus.org/termination/#tocAnchor-1-3" rel="nofollow noopener noreferrer"&gt;https://www.codehaus.org/termination/#tocAnchor-1-3&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 21:18:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190534#M143664</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2015-06-12T21:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190535#M143665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; It looks like the subtask is not associated to the process instance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can always set the process instance id on the newly created task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jira has moved to &lt;/SPAN&gt;&lt;A href="https://activiti.atlassian.net/secure/Dashboard.jspa" rel="nofollow noopener noreferrer"&gt;https://activiti.atlassian.net/secure/Dashboard.jspa&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 09:05:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190535#M143665</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-06-16T09:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190536#M143666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;gt;You can always set the process instance id on the newly created task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure how to set the process instance id explicitly on a newly created task. I don't see a setter for ProcessInstanceId on the task object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://activiti.org/javadocs/org/activiti/engine/task/Task.html" rel="nofollow noopener noreferrer"&gt;http://activiti.org/javadocs/org/activiti/engine/task/Task.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:56:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190536#M143666</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2015-06-17T15:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190537#M143667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is the way to set the Process instance id by casting it to TaskEntity? Also, how would I retrieve all tasks (including completed ones) for a process instance. It looks like the HistoryService/ HistoricTaskInstanceQuery doesn't have anything that returns tasks by Process Instance Id. Or, should I go the route of Task Service - taskService.createTaskQuery().processInstanceId(processInstanceId).list(); BTW, why is there a significant performance difference between using Task Service and History Service (faster) for same/similar operations &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 20:10:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190537#M143667</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2015-06-19T20:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190538#M143668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you need to cast to TaskEntity. HistoricTaskInstanceQuery has a processInstanceId method (it extends from TaskInfoQuery). Can you share your results of the performance difference?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 18:31:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190538#M143668</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-06-21T18:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190539#M143669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are results from our testing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;|Scenario | 5 Parent Tasks Each with 5 SubTasks | 5 Parent Tasks Each with&amp;nbsp; 2 SubTasks| 5 parents, 2 parent Task&amp;nbsp; with 5 SubTasks | 5parents, 2 parent task with 2 SubTasks|&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|Only parent Task with TaskService |&amp;nbsp; 281ms | 78ms | 110ms | 63ms |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|Including subTasks with TaskService | 765ms |508ms |436ms |345ms|&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|Only parent Task with HistoryService | 47ms |180ms |47ms |33ms|&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|Including subTasks with HistoryService|&amp;nbsp; 566ms |546ms |703ms |799ms|&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully, the formatting is ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would be interested in learning what is the recommend/best way of accessing - all tasks/subtasks (associated to same process instance id) - both active and completed ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 20:39:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190539#M143669</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2015-06-22T20:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190540#M143670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for sharing. Which db are you testing with?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the difference with retrieving the task via the task service could be that it will also load the identity links and some other data together with the task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 21:16:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190540#M143670</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-06-24T21:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task within a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190541#M143671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SQL Server 2008 R2 running on Windows 2008 server&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:41:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-task-within-a-task/m-p/190541#M143671</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2015-06-25T17:41:00Z</dc:date>
    </item>
  </channel>
</rss>

