<?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: How do I set a task's DueDate outside an execution context in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119139#M84021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Given that change, is there going to be a way to use TaskService.saveTask() without generating a bunch of phantom TaskListener events?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2013 14:50:37 GMT</pubDate>
    <dc:creator>brianshowers</dc:creator>
    <dc:date>2013-03-27T14:50:37Z</dc:date>
    <item>
      <title>How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119129#M84011</link>
      <description>I apologize if there is an obvious answer to this question.&amp;nbsp; It seems terribly simple.I have a scenario in which I want to programatically change the DueDate of a Task.&amp;nbsp; I thought this would be as simple as other elements such as Assignee and Priorty where I could call taskService.setAssignee() or t</description>
      <pubDate>Tue, 05 Mar 2013 20:56:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119129#M84011</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-05T20:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119130#M84012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First, query the task by ID. Update the Task.setDueDate(). Call taskService.saveTask(task); done!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 21:49:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119130#M84012</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-05T21:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119131#M84013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, while that seems nice and simple, I don't think that taskService.saveTask() can really be used in a system that also uses TaskListeners.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, it re-sets the assignee and TaskEntity.setAssignee() generates an event to any listeners (even when the assignee value is the same).&amp;nbsp; This means that if the task already has an assignee when you call taskService.saveTask(), it will re-assign that person and fire false TaskListener.EVENTNAME_ASSIGNMENT events to any listeners.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TaskEntity:419 has a line of code that would prevent this, but it's commented out.&amp;nbsp; I don't know the history behind that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 22:19:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119131#M84013</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-05T22:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119132#M84014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there another way in which I can change a task's due date from outside of an execution context?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I just answered your question. The issue with the task-listener is something else and needs to be looked into, off course…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 22:39:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119132#M84014</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-05T22:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119133#M84015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Would you like me to start a new post for this, or just continue the discussion here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FWICT, it looks like the TaskService logic was changed by Joram as a part of &lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-1290" rel="nofollow noopener noreferrer"&gt;ACT-1290&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; That commit commented out all of the logic in the TaskEntity setters (assignee and owner), that treated re-setting the existing value as a no-op.&amp;nbsp; It's not clear to me if that was somehow related to fixing the bug reported in the ticket or if the changes were unrelated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 16:34:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119133#M84015</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-06T16:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119134#M84016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'll check with Joram to see what his opinion is. However, I don't immediately see any objections to revive commented out piece of code…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:34:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119134#M84016</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-07T14:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119135#M84017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We discussed it and indeed decided I wan't thinking clear at that point …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 10:06:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119135#M84017</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-11T10:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119136#M84018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you need me to open a Jira ticket?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 14:55:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119136#M84018</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-11T14:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119137#M84019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No need for that, we're on it &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 08:22:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119137#M84019</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-12T08:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119138#M84020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The commented lines of code should be removed, indeed. Otherwise, the assignee won't be recored if it has been set before (e.g.. by setAssigneeWithoutCascade or when task is created). So this change was intended and I'll remove the commented out code completely. Any code that relies on the "no-op" should be changed I'm afraid.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 10:26:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119138#M84020</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-27T10:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119139#M84021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Given that change, is there going to be a way to use TaskService.saveTask() without generating a bunch of phantom TaskListener events?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 14:50:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119139#M84021</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-27T14:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a task's DueDate outside an execution context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119140#M84022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We need to get that fixed, so there will be another mechanism in place to prevent fantom assignment-events in 5.13.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-1627" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-1627&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 15:16:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-set-a-task-s-duedate-outside-an-execution-context/m-p/119140#M84022</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-27T15:16:14Z</dc:date>
    </item>
  </channel>
</rss>

