<?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: 5.17 Async ServiceTask with later receiveTask signal not working in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177933#M131063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my unit tests, I see the route started after waiting about 9 seconds. It triggers the receive task about 0.2 seconds later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can certainly try to make a simple unit test for this (I do need to read the sticky messages on the subject). Do I need to worry about putting it in the camel project vs the engine project tests?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just at first look I don't see why the AsyncProcessTest in activiti-camel isn't showing the same issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 14:40:38 GMT</pubDate>
    <dc:creator>njames</dc:creator>
    <dc:date>2015-07-01T14:40:38Z</dc:date>
    <item>
      <title>5.17 Async ServiceTask with later receiveTask signal not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177931#M131061</link>
      <description>Hi,Sorry if this is a FAQ, but I haven't been able to find an answer in the forum yet.I am updating our existing app from Activiti 5.15.1 to 5.17.0. A result of this upgrade is that I am unable to make the async-continuations work as I thought they should.We use the following construct to have a lon</description>
      <pubDate>Tue, 30 Jun 2015 21:51:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177931#M131061</guid>
      <dc:creator>njames</dc:creator>
      <dc:date>2015-06-30T21:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: 5.17 Async ServiceTask with later receiveTask signal not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177932#M131062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How much time is there between starting the Camel route and invoking the receive task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you share a unit test showing the issue, so I can look into it?&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, 01 Jul 2015 14:14:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177932#M131062</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-07-01T14:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: 5.17 Async ServiceTask with later receiveTask signal not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177933#M131063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my unit tests, I see the route started after waiting about 9 seconds. It triggers the receive task about 0.2 seconds later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can certainly try to make a simple unit test for this (I do need to read the sticky messages on the subject). Do I need to worry about putting it in the camel project vs the engine project tests?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just at first look I don't see why the AsyncProcessTest in activiti-camel isn't showing the same issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:40:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177933#M131063</guid>
      <dc:creator>njames</dc:creator>
      <dc:date>2015-07-01T14:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: 5.17 Async ServiceTask with later receiveTask signal not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177934#M131064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked out the activiti-5.17.0 branch and made a small modification to an existing unit test in the activiti-camel module.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have removed the use of seda from src/test/java/org/activiti/camel/revisited/AsyncProcessRevisitedTest.java&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void configure() throws Exception {&lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from("activiti:asyncCamelProcessRevisited:serviceTaskAsync1").to("bean:sleepBean?method=sleep").to("seda:continueAsync1");&lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from("seda:continueAsync1").to("activiti:asyncCamelProcessRevisited:receive1");&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from("activiti:asyncCamelProcessRevisited:serviceTaskAsync1").to("bean:sleepBean?method=sleep").to("activiti:asyncCamelProcessRevisited:receive1");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from("activiti:asyncCamelProcessRevisited:serviceTaskAsync2").to("bean:sleepBean?method=sleep").to("bean:sleepBean?method=sleep").to("seda:continueAsync2");&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from("seda:continueAsync2").to("activiti:asyncCamelProcessRevisited:receive2");&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from("activiti:asyncCamelProcessRevisited:serviceTaskAsync2").to("bean:sleepBean?method=sleep").to("bean:sleepBean?method=sleep").to("activiti:asyncCamelProcessRevisited:receive2");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;Instead of sending the exchange to seda endpoints and having separate routes for the seda queues, I have ended the service task routes by sending them directly to the activiti endpoint to signal the receive tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I do this, the test shows my issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;01:04:15,654 [Thread-8] INFO&amp;nbsp; org.activiti.engine.impl.asyncexecutor.AcquireTimerJobsRunnable&amp;nbsp; - {} starting to acquire async jobs due&lt;BR /&gt;01:04:15,654 [Thread-9] INFO&amp;nbsp; org.activiti.engine.impl.asyncexecutor.AcquireAsyncJobsDueRunnable&amp;nbsp; - {} starting to acquire async jobs due&lt;BR /&gt;01:04:18,657 [main] INFO&amp;nbsp; org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor&amp;nbsp; - Shutting down the default async job executor [org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor].&lt;BR /&gt;01:04:18,659 [Thread-8] INFO&amp;nbsp; org.activiti.engine.impl.asyncexecutor.AcquireTimerJobsRunnable&amp;nbsp; - {} stopped async job due acquisition&lt;BR /&gt;01:04:18,659 [Thread-9] INFO&amp;nbsp; org.activiti.engine.impl.asyncexecutor.AcquireAsyncJobsDueRunnable&amp;nbsp; - {} stopped async job due acquisition&lt;BR /&gt;01:04:21,256 [pool-1-thread-1] ERROR org.apache.camel.processor.DefaultErrorHandler&amp;nbsp; - Failed delivery for (MessageId: ID-xx-1 on ExchangeId: ID-xx-3). Exhausted after delivery attempt: 1 caught: java.lang.RuntimeException: Couldn't find activity receive1 for processId 4 in defined timeout.&lt;BR /&gt;java.lang.RuntimeException: Couldn't find activity receive1 for processId 4 in defined timeout.&lt;BR /&gt; at org.activiti.camel.ActivitiProducer.signal(ActivitiProducer.java:123)&lt;BR /&gt; at org.activiti.camel.ActivitiProducer.process(ActivitiProducer.java:65)&lt;BR /&gt; at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;It seems very strange that we have to use asynchronous Camel via the seda component to make activiti:async="true" work for a service task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 18:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177934#M131064</guid>
      <dc:creator>njames</dc:creator>
      <dc:date>2015-07-01T18:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: 5.17 Async ServiceTask with later receiveTask signal not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177935#M131065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've just hit this (using 6.0.0.Beta1). @njames, thanks for doing the investigation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is expected behaviour, shouldn't it be added to the &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#bpmnCamelTaskAsyncPingPong" rel="nofollow noopener noreferrer"&gt;docs&lt;/A&gt;&lt;SPAN&gt;, so that others won't run into the same issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 06:25:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-17-async-servicetask-with-later-receivetask-signal-not-working/m-p/177935#M131065</guid>
      <dc:creator>donovanmuller</dc:creator>
      <dc:date>2015-10-01T06:25:23Z</dc:date>
    </item>
  </channel>
</rss>

