<?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: Correct way to signal a receiveTask in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198297#M151427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it expected behaviour for the thread that calls signal() to continue executing the process even if that thread is not part of the executor pool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation indicates that this is not the case:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"A process instance can have various wait states and this service contains various operations to 'signal' the instance that the external trigger is received and the process instance can be continued."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd expect the 'signal' to immediately return yielding control back to the external trigger instead of executing further commands within the external trigger's thread. Please find attached a log file demonstrating this behaviour using the class and bpmn above.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 18:00:14 GMT</pubDate>
    <dc:creator>exp2345</dc:creator>
    <dc:date>2014-08-20T18:00:14Z</dc:date>
    <item>
      <title>Correct way to signal a receiveTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198293#M151423</link>
      <description>I am attempting to signal a receive task from a delegate Java thread started from a Service Task and have run into two issues with the implementation.I have already read the threads http://forums.activiti.org/content/error-while-signaling-activity-receive-task and http://forums.activiti.org/content/</description>
      <pubDate>Tue, 19 Aug 2014 10:38:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198293#M151423</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-08-19T10:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Correct way to signal a receiveTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198294#M151424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; I expect that registering an event listener on ACTIVITI_STARTED before leaving the Service Task will allow me to wait until the receive state &amp;gt; has started before starting the delegate thread. When I query for the Execution using the executionId from ActivitiEvent RuntimeService &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; returns a null execution which prevents me from verifying that the correct task has started. Is this expected behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - the event is fired but probably the transaction hasn't been committed to the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the call is so fast, why make the call async? Doing the call synchronous would be logical here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, in this case polling is probably easiest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 11:28:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198294#M151424</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-08-19T11:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Correct way to signal a receiveTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198295#M151425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply. Many of the calls do take a long time, but I created this example to reproduce behaviour I observed then the calls happened to return immediately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll go ahead with polling and look into patching signal() to throw something other than NullPointerException when the execution hasn't been committed yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: According to the API it should return ActivitiObjectNotFoundException (&lt;/SPAN&gt;&lt;A href="http://activiti.org/javadocs/org/activiti/engine/RuntimeService.html#signal(java.lang.String)" rel="nofollow noopener noreferrer"&gt;http://activiti.org/javadocs/org/activiti/engine/RuntimeService.html#signal(java.lang.String)&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 11:42:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198295#M151425</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-08-19T11:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Correct way to signal a receiveTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198296#M151426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it expected behaviour for the thread that calls signal() to continue executing the process even if that thread is not part of the executor pool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation indicates that this is not the case:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"A process instance can have various wait states and this service contains various operations to 'signal' the instance that the external trigger is received and the process instance can be continued."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd expect the 'signal' to immediately return yielding control back to the external trigger instead of executing further commands within the external trigger's thread. Please find attached a log file demonstrating this behaviour using the class and bpmn above.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 17:58:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198296#M151426</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-08-20T17:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Correct way to signal a receiveTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198297#M151427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it expected behaviour for the thread that calls signal() to continue executing the process even if that thread is not part of the executor pool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation indicates that this is not the case:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"A process instance can have various wait states and this service contains various operations to 'signal' the instance that the external trigger is received and the process instance can be continued."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd expect the 'signal' to immediately return yielding control back to the external trigger instead of executing further commands within the external trigger's thread. Please find attached a log file demonstrating this behaviour using the class and bpmn above.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 18:00:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198297#M151427</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-08-20T18:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Correct way to signal a receiveTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198298#M151428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes this is expected behaviour. It will execute until the next wait state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is not the desired behaviour you can add an asynchronous element in the process definition so the thread will only execute until this asynchronous element.&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>Thu, 21 Aug 2014 13:16:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/correct-way-to-signal-a-receivetask/m-p/198298#M151428</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-08-21T13:16:08Z</dc:date>
    </item>
  </channel>
</rss>

