<?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: Can I signal a specific receive task? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37150#M15627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since signals and messages can be used&amp;nbsp;in a variety of ways, the signaling a signal on a receive task cannot work as you mentioned by&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;"receiveTaskId": "myReceiveTask".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Signals are generally used for broadcasting. If you are looking to send a signal to a particular receive task using a boundary event I suggest using a message event. For better readability, name the message event something like "receive-task-message-event" which makes it look tied to your receive task&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For completing the receive task it is a two step process, you will first need to query for active message subscriptions (executions) with name&amp;nbsp;&lt;SPAN&gt;"receive-task-message-event" and&amp;nbsp;get the execution id. Then complete the message subscription by executing the &lt;A href="https://www.activiti.org/userguide/#_execute_an_action_on_an_execution" rel="nofollow noopener noreferrer"&gt;API&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2017 16:12:41 GMT</pubDate>
    <dc:creator>cjose</dc:creator>
    <dc:date>2017-07-20T16:12:41Z</dc:date>
    <item>
      <title>Can I signal a specific receive task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37148#M15625</link>
      <description>Hello,I've read the following documentation regarding signaling an execution (in the user guide):13.6.2. Execute an action on an executionPUT runtime/executions/{executionId}Table 90. Execute an action on an execution - URL parametersParameterRequiredValueDescriptionexecutionIdYesStringThe id of the</description>
      <pubDate>Wed, 19 Jul 2017 08:47:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37148#M15625</guid>
      <dc:creator>avirankatz</dc:creator>
      <dc:date>2017-07-19T08:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I signal a specific receive task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37149#M15626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 21:02:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37149#M15626</guid>
      <dc:creator>avirankatz</dc:creator>
      <dc:date>2017-07-19T21:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I signal a specific receive task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37150#M15627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since signals and messages can be used&amp;nbsp;in a variety of ways, the signaling a signal on a receive task cannot work as you mentioned by&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;"receiveTaskId": "myReceiveTask".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Signals are generally used for broadcasting. If you are looking to send a signal to a particular receive task using a boundary event I suggest using a message event. For better readability, name the message event something like "receive-task-message-event" which makes it look tied to your receive task&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For completing the receive task it is a two step process, you will first need to query for active message subscriptions (executions) with name&amp;nbsp;&lt;SPAN&gt;"receive-task-message-event" and&amp;nbsp;get the execution id. Then complete the message subscription by executing the &lt;A href="https://www.activiti.org/userguide/#_execute_an_action_on_an_execution" rel="nofollow noopener noreferrer"&gt;API&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 16:12:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37150#M15627</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-07-20T16:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I signal a specific receive task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37151#M15628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer. It helped indeed.&lt;/P&gt;&lt;P&gt;However, this triggered a different issue: we handle events from Activiti using an implementation of &lt;STRONG&gt;ActivitiEventListener&lt;/STRONG&gt;. This works like a charm as&amp;nbsp;process instances proceed from within Activiti Explorer or Activiti REST. But when I send a message via the API, events such as&amp;nbsp;&lt;EM&gt;ACTIVITY_COMPLETED&lt;/EM&gt;&amp;nbsp;are not fired.&lt;/P&gt;&lt;P&gt;See the following&amp;nbsp;code snippet:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public static void &lt;/SPAN&gt;main(String[] args) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;readProperties&lt;/SPAN&gt;();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a;"&gt;processEngine &lt;/SPAN&gt;= &lt;SPAN&gt;buildProcessEngine&lt;/SPAN&gt;();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a;"&gt;processEngine&lt;/SPAN&gt;.getRuntimeService().addEventListener(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ActivitiEventHandler(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"localhost"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"61616"&lt;/SPAN&gt;));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;MessageSender(&lt;SPAN style="color: #660e7a;"&gt;processEngine&lt;/SPAN&gt;).sendMessage(args);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;What am I missing here?&lt;/P&gt;&lt;P&gt;Aviran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 11:40:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37151#M15628</guid>
      <dc:creator>avirankatz</dc:creator>
      <dc:date>2017-07-25T11:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can I signal a specific receive task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37152#M15629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case anyone would come across the same problem -&lt;/P&gt;&lt;P&gt;This was a misunderstanding: I presumed that all events would show up in the &lt;STRONG&gt;ACT_EVT_LOG&lt;/STRONG&gt;&amp;nbsp;table, not knowing that there's a registered event listener that popoulates it. After not seeing the expected events in the table I thought that activiti doesn't dispatch them, when in reality they were dispatched but had no indication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I added the following line, which made activiti populate &lt;STRONG&gt;ACT_EVT_LOG&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;runtimeService.addEventListener(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;EventLogger(&lt;SPAN style="color: #660e7a;"&gt;processEngine&lt;/SPAN&gt;.getProcessEngineConfiguration().getClock()));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 13:19:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-i-signal-a-specific-receive-task/m-p/37152#M15629</guid>
      <dc:creator>avirankatz</dc:creator>
      <dc:date>2017-07-25T13:19:32Z</dc:date>
    </item>
  </channel>
</rss>

