<?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 Signal Boundary Event in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82692#M55448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Activiti 5.9 and either I've misunderstood how a Signal Boundary Event works, or they don't seem to be working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the test process I've put together:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/8UIeJ.jpg" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/8UIeJ.jpg&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When a process starts the execution arrives at "Receive Task" and waits for it's signal. If &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;runtimeService.signal(executionId);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; is invoked the execution continues down the "Normal Path" and ends at it's end state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I was expecting was that if instead of calling &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;runtimeService.signal(executionId);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; I call &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;runtimeService.signalEventReceived("TheSignal");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; (that's the signal ID specified on the Boundary Signal Event) when the execution was waiting at "Receive Task" that would make it take the "Signal Path" and end at it's end event. Instead it appears to have no effect on the execution (the "Signal Path" is never taken and I can subsequently call signal(executionId) and the normal path is taken).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "Receive Task" and boundary event definitions are as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;receiveTask id="receiveTask" name="Receive Task"&amp;gt;&amp;lt;/receiveTask&amp;gt;&lt;BR /&gt;&amp;lt;boundaryEvent id="boundarysignal1" name="" cancelActivity="true" attachedToRef="receiveTask"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;signalEventDefinition signalRef="TheSignal"&amp;gt;&amp;lt;/signalEventDefinition&amp;gt;&lt;BR /&gt;&amp;lt;/boundaryEvent&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;and "TheSignal" is defined at the top level definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just noticed something else. If I call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;runtimeService.signalEventReceived("TheSignal", executionId);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I get the error message: "org.activiti.engine.ActivitiException: Execution '22' has not subscribed to a signal event with name 'TheSignal'."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have verified that the execution is waiting at the "Receive Task".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone could let me know what I am doing wrong or whether there is actually a bug given the described behaviour that would be sincerely appreciated. There doesn't appear to be any examples that include a signal in the 5.9 distribution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2012 01:58:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-24T01:58:52Z</dc:date>
    <item>
      <title>Signal Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82692#M55448</link>
      <description>Hi All,I'm using Activiti 5.9 and either I've misunderstood how a Signal Boundary Event works, or they don't seem to be working.This is the test process I've put together:[img]http://i.imgur.com/8UIeJ.jpg[/img]When a process starts the execution arrives at "Receive Task" and waits for it's signal. I</description>
      <pubDate>Thu, 24 May 2012 01:58:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82692#M55448</guid>
      <dc:creator />
      <dc:date>2012-05-24T01:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Signal Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82693#M55449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Nick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe I'm wrong, but as you didnot mention it,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;did you declare the signal itself ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;User guide says &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/index.html#bpmnSignalEventDefinition" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt; : "The attribute signalRef references a signal element declared as a child element of the definitions root element."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;definitions… &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– declaration of the signal –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;signal id="TheSignal" name="The signal" /&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps, regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jérôme&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 08:46:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82693#M55449</guid>
      <dc:creator>jcavezian</dc:creator>
      <dc:date>2012-05-24T08:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Signal Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82694#M55450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jerome,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. The signal is declared as you mentioned. That's what I meant by: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;and "TheSignal" is defined at the top level definitions&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Apologies for any confusion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 09:35:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82694#M55450</guid>
      <dc:creator />
      <dc:date>2012-05-24T09:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Signal Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82695#M55451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having the same issue. I am getting an ActivitiException with the message "Execution '18812' has not subscribed to a signal event with name 'MySignal'."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The line of code leading to this exception is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;runtimeService.signalEventReceived("MySignal", exec.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My process definition contains:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;definitions xmlns=…"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;signal id="MySignal" name="My Signal" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;process id="VaultingMonitorAndFollowup" name="Vaulting Monitor And Follow Up"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startevent1" name="Start" activiti:initiator="initiator"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="waitForCertificate" name="Certificate Monitor Task" activiti:candidateGroups="accountancy"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="vaultEscalationTimer" cancelActivity="true" attachedToRef="waitForCertificate"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDuration&amp;gt;${vaultDuration}&amp;lt;/timeDuration&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/boundaryEvent&amp;gt;&lt;BR /&gt; &amp;lt;boundaryEvent id="boundaryCancelSignal" attachedToRef="waitForCertificate" cancelActivity="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;signalEventDefinition signalRef="MySignal" /&amp;gt;&lt;BR /&gt; &amp;lt;/boundaryEvent&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;…&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not been able to find any other documentation saying how a process or task should "subscribe" to a signal. I look forward to learning how to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 22:48:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82695#M55451</guid>
      <dc:creator>jayehsea</dc:creator>
      <dc:date>2012-05-24T22:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Signal Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82696#M55452</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;There are a couple of things to pay attention to when using the signal event functionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First when you want to use the runtimeService.signalEventReceived method you should pass-in the signal name and not the id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So when you have the following signal definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;signal id="testSignal" name="Test signal"/&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;You should use Test signal in the runtimeService.signalEventReceived method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you want to use the runtimeService.signalEventReceived method with the execution id parameter you should make sure that this is the execution id of the signal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can query the runtimeService to get this signal execution like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;Execution execution = runtimeService.createExecutionQuery().signalEventSubscription("Test signal").singleResult();&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Again make sure that you use the signal name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps you to get your example working.&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>Fri, 25 May 2012 15:36:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82696#M55452</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-05-25T15:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Signal Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82697#M55453</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;BR /&gt;&lt;SPAN&gt;That was the problem, I was using the signal ID instead of the name. Thanks for the assistance &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 02:41:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82697#M55453</guid>
      <dc:creator />
      <dc:date>2012-05-28T02:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Signal Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82698#M55454</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 pretty new to activiti. So, Practicing some test cases for easy understanding. Can Any One help me with the sample bpmn &amp;amp; Junit test file for&amp;nbsp; : Signal Catch &amp;amp; Throw. Further explanation about the concept would be usefull as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 12:15:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82698#M55454</guid>
      <dc:creator>venkatesh</dc:creator>
      <dc:date>2016-03-23T12:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Signal Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82699#M55455</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;UL&gt;&lt;LI&gt;download activiti source&lt;/LI&gt;&lt;LI&gt;go to org.activiti.engine.test.bpmn.event.signal.SignalEventTest&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 20:05:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82699#M55455</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-23T20:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Signal Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82700#M55456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You so much for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Venkatesh.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 09:25:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signal-boundary-event/m-p/82700#M55456</guid>
      <dc:creator>venkatesh</dc:creator>
      <dc:date>2016-03-24T09:25:48Z</dc:date>
    </item>
  </channel>
</rss>

