<?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 Question on behavior of sub tasks and parent task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/question-on-behavior-of-sub-tasks-and-parent-task/m-p/181740#M134870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a subtask to a task through code, then called task.complete on the parent task. This caused activiti engine to mark the parent task as complete and move on in the workflow. Is there any way to force that the parent task cannot be marked as complete until the subtasks are completed? I am trying to think of a scenario where if the owner of a task delegates couple of subtasks related to a parent task, what way is there to force them to wait until the subtasks are complete?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2014 05:15:56 GMT</pubDate>
    <dc:creator>rohail</dc:creator>
    <dc:date>2014-11-11T05:15:56Z</dc:date>
    <item>
      <title>Question on behavior of sub tasks and parent task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-on-behavior-of-sub-tasks-and-parent-task/m-p/181740#M134870</link>
      <description>Hello, I created a subtask to a task through code, then called task.complete on the parent task. This caused activiti engine to mark the parent task as complete and move on in the workflow. Is there any way to force that the parent task cannot be marked as complete until the subtasks are completed?</description>
      <pubDate>Tue, 11 Nov 2014 05:15:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-on-behavior-of-sub-tasks-and-parent-task/m-p/181740#M134870</guid>
      <dc:creator>rohail</dc:creator>
      <dc:date>2014-11-11T05:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question on behavior of sub tasks and parent task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-on-behavior-of-sub-tasks-and-parent-task/m-p/181741#M134871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, that functionality is currently not in the engine and it would have to be added. It's not on our planning … so if you need it and can code it, a pull request is more than welcome!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 20:08:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-on-behavior-of-sub-tasks-and-parent-task/m-p/181741#M134871</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-11-18T20:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question on behavior of sub tasks and parent task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-on-behavior-of-sub-tasks-and-parent-task/m-p/181742#M134872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought about this problem, so I will share you what I did, because I had the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all, I am using REST API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, when I want to complete a task, I would like to check if there's no subtask(s). At the beginning, I do a GET call with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; runtime/tasks/" + myTaskId + "/subtasks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if it retrieves null, I can complete the task, otherwise I force the completion of the subtasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I want to create a subtask, I create a normal one, and at the end I give a "parentTaskId". So when I edit my subtask, I can see that the field "parentTaskId" has a value, and when I want to complete this parent task, it will&amp;nbsp; retrieve impossible because of existing subtask(s).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this helped anyone …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aurelien&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 16:42:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-on-behavior-of-sub-tasks-and-parent-task/m-p/181742#M134872</guid>
      <dc:creator>aurelienpel</dc:creator>
      <dc:date>2014-11-19T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Question on behavior of sub tasks and parent task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-on-behavior-of-sub-tasks-and-parent-task/m-p/181743#M134873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adding your own findings to a post always helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 08:35:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-on-behavior-of-sub-tasks-and-parent-task/m-p/181743#M134873</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-11-20T08:35:42Z</dc:date>
    </item>
  </channel>
</rss>

