<?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 What is the best way to control TaskListener on UserTask? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210754#M163884</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;I am facing a problem with Task Listeners. I have simple workflow with 1 UserTask(with Create TaskListener). I am using TaskListener to publish event to JMS Queue. During Task Creation, flow happening like &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Task creation(Delegate task)-&amp;gt;trigger task listener-&amp;gt;persist task data in Database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thing is I am getting some DB related exception while persisting data into database and hence task not persisted in database. But task listener already triggered and which is sending a false data to JMS Queue subscribers(in this case because, task is not available). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to trigger task listener until a successful transaction is done for UserTask? Please provide me a prototype if available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Swamy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2015 12:39:38 GMT</pubDate>
    <dc:creator>swamy2156</dc:creator>
    <dc:date>2015-11-12T12:39:38Z</dc:date>
    <item>
      <title>What is the best way to control TaskListener on UserTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210754#M163884</link>
      <description>Hi,I am facing a problem with Task Listeners. I have simple workflow with 1 UserTask(with Create TaskListener). I am using TaskListener to publish event to JMS Queue. During Task Creation, flow happening like Task creation(Delegate task)-&amp;gt;trigger task listener-&amp;gt;persist task data in Database. T</description>
      <pubDate>Thu, 12 Nov 2015 12:39:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210754#M163884</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2015-11-12T12:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to control TaskListener on UserTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210755#M163885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Swamy, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of writing the code in the task listener go for a service task. Write your logic in it and hence it will not get executed until your user task has successfully completed. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 08:44:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210755#M163885</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-01-20T08:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to control TaskListener on UserTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210756#M163886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Or you can use a script task if you don't want to do a service task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 13:58:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210756#M163886</guid>
      <dc:creator>maudrid</dc:creator>
      <dc:date>2016-01-25T13:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to control TaskListener on UserTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210757#M163887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. I followed Service task as solution for this. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 06:29:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210757#M163887</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2016-01-27T06:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to control TaskListener on UserTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210758#M163888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So did you have user task followed by service task? Can you please give me more details? I have same problem but I want send message on JMS after task is persisted in DB but not completed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 15:42:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210758#M163888</guid>
      <dc:creator>testactivitiuse</dc:creator>
      <dc:date>2016-03-05T15:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to control TaskListener on UserTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210759#M163889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure that the Asynchronous flag is set to true on your service task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The default is false and you will have the same behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/#asyncContinuations" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#asyncContinuations&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 10:33:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-best-way-to-control-tasklistener-on-usertask/m-p/210759#M163889</guid>
      <dc:creator>maudrid</dc:creator>
      <dc:date>2016-03-08T10:33:12Z</dc:date>
    </item>
  </channel>
</rss>

