<?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: Issue querying for Signal in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39645#M16637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had a detailed look at your post today.&lt;BR /&gt;I don't think timer, event and signal boundary events work on script/services/camel tasks in Activiti...not sure if it is by design or a defect! Feel free to raise an issue or even a contribution (which would be great!) assuming it is valid as per BPMN 2.0 spec. This is probably the main reason why you not able to trigger a signal attached to your Camel task.&lt;/P&gt;&lt;P&gt;Regarding the async setting I mentioned, assume&amp;nbsp;that&amp;nbsp;Activiti supported boundary signals/messages on Camel task, then I would expect those message/signal subscription to work only after the activity it is attached to is persisted to database (which is essentially controlled by the setting of async flag explained at &lt;A href="https://activiti.github.io/userguide/5.19.0/index.html#asyncContinuations" rel="nofollow noopener noreferrer"&gt;https://activiti.github.io/userguide/5.19.0/index.html#asyncContinuations&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your camel task a very long running task? If that is the only reason for a boundary event, you can achieve that using a Camel + Receive Task pattern as explained in&amp;nbsp;the user guide &lt;A href="https://activiti.github.io/userguide/5.19.0/index.html#bpmnCamelTask" rel="nofollow noopener noreferrer"&gt;https://activiti.github.io/userguide/5.19.0/index.html#bpmnCamelTask&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;A normal Camel + Receive Task pattern that is used in the following test cases in Activiti are working fine&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/5.x/modules/activiti-camel/src/test/java/org/activiti/camel/AsyncPingTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/5.x/modules/activiti-camel/src/test/java/org/activiti/camel/AsyncPingTest.java&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/5.x/modules/activiti-camel/src/test/java/org/activiti/camel/AsyncProcessTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/5.x/modules/activiti-camel/src/test/java/org/activiti/camel/AsyncProcessTest.java&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;With the above pattern, I was hoping that I can include a boundary signal on the receive task if I want to terminate it using external signals...However there appears an issue when there are boundary events on those receive tasks. Looks like the Camel Behavior in Activiti is not completing the boundary events when Receive Tasks are completed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to raise an issue&amp;nbsp;on this in Activiti. Btw, until this issue is fixed, you might be able to achieve similar external signaling + camel signaling functionality by altering the process model a bit. Please find attached the project I used to test these behaviors. Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2017 04:08:35 GMT</pubDate>
    <dc:creator>cjose</dc:creator>
    <dc:date>2017-08-03T04:08:35Z</dc:date>
    <item>
      <title>Issue querying for Signal</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39640#M16632</link>
      <description>Hi,I have a problem regarding the query of signal.I'm trying to use signalEventReceived(signalName,executionId) to trigger a boundary signal. However it does not work, it says that Execution xx has not subscribed to a signal event with name xx.And when I query for the active execution , there is no</description>
      <pubDate>Thu, 27 Jul 2017 12:10:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39640#M16632</guid>
      <dc:creator>jpgouin</dc:creator>
      <dc:date>2017-07-27T12:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue querying for Signal</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39641#M16633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;runtimeService.createExecutionQuery().signalEventSubscriptionName(signalName) is the correct way to query for active executions..however it looks strange to have an signal boundary event on a sync service task.&amp;nbsp;May be I didn't understand your use case&amp;nbsp;here...&amp;nbsp;Are you expecting to send a message in the service task and want to wait for a&amp;nbsp;signal in the same task? Do you have any unit tests that I can run to reproduce&amp;nbsp;the issue on my end?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Ciju&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 04:32:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39641#M16633</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-08-01T04:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue querying for Signal</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39642#M16634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, the synchronous service task is a call to a camel route , and the route can terminate by sending a signal and therefore trigger the boundary event to perform a custom action defined in the script task&amp;nbsp;. Or the camel route can end nominally and the workflow continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I join a test case that illustrate the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing to do is to put a breakpoint in the sendSignal method , and you'll see that the execution resulting of the query is null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;And the execution result of&amp;nbsp;the query only on the processInstanceId contain the scopeExecution object that contains the boundarySignalDefinition of the signal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jean-Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 12:43:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39642#M16634</guid>
      <dc:creator>jpgouin</dc:creator>
      <dc:date>2017-08-01T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue querying for Signal</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39643#M16635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jean-Philippe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the sample process and test case.&amp;nbsp;From a quick look at the xml and your use case, it makes sense to follow the async pattern as explained &lt;A href="https://www.activiti.org/userguide/index.html#bpmnCamelTaskAsyncPingPong" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;. The query apis are basically querying the database and since your service task is configured as "sync", the entry will not be in the database until the process reaches the next wait state...This is probably why your execution query is returning null.&lt;/P&gt;&lt;P&gt;I'll check out your test case and example in detail when I get a few minutes. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:59:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39643#M16635</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-08-01T15:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue querying for Signal</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39644#M16636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ciju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer, I tried with the activiti:async="true" on the service task but still the same result.&lt;/P&gt;&lt;P&gt;I could use other way to achieve what I want , but I just want to prove if it's possible to trigger a boundary&amp;nbsp;event from a camel route.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the first script task is async , I don't think this&amp;nbsp;is&amp;nbsp;an issue about async pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jean-Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 09:37:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39644#M16636</guid>
      <dc:creator>jpgouin</dc:creator>
      <dc:date>2017-08-02T09:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue querying for Signal</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39645#M16637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had a detailed look at your post today.&lt;BR /&gt;I don't think timer, event and signal boundary events work on script/services/camel tasks in Activiti...not sure if it is by design or a defect! Feel free to raise an issue or even a contribution (which would be great!) assuming it is valid as per BPMN 2.0 spec. This is probably the main reason why you not able to trigger a signal attached to your Camel task.&lt;/P&gt;&lt;P&gt;Regarding the async setting I mentioned, assume&amp;nbsp;that&amp;nbsp;Activiti supported boundary signals/messages on Camel task, then I would expect those message/signal subscription to work only after the activity it is attached to is persisted to database (which is essentially controlled by the setting of async flag explained at &lt;A href="https://activiti.github.io/userguide/5.19.0/index.html#asyncContinuations" rel="nofollow noopener noreferrer"&gt;https://activiti.github.io/userguide/5.19.0/index.html#asyncContinuations&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your camel task a very long running task? If that is the only reason for a boundary event, you can achieve that using a Camel + Receive Task pattern as explained in&amp;nbsp;the user guide &lt;A href="https://activiti.github.io/userguide/5.19.0/index.html#bpmnCamelTask" rel="nofollow noopener noreferrer"&gt;https://activiti.github.io/userguide/5.19.0/index.html#bpmnCamelTask&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;A normal Camel + Receive Task pattern that is used in the following test cases in Activiti are working fine&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/5.x/modules/activiti-camel/src/test/java/org/activiti/camel/AsyncPingTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/5.x/modules/activiti-camel/src/test/java/org/activiti/camel/AsyncPingTest.java&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/5.x/modules/activiti-camel/src/test/java/org/activiti/camel/AsyncProcessTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/5.x/modules/activiti-camel/src/test/java/org/activiti/camel/AsyncProcessTest.java&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;With the above pattern, I was hoping that I can include a boundary signal on the receive task if I want to terminate it using external signals...However there appears an issue when there are boundary events on those receive tasks. Looks like the Camel Behavior in Activiti is not completing the boundary events when Receive Tasks are completed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to raise an issue&amp;nbsp;on this in Activiti. Btw, until this issue is fixed, you might be able to achieve similar external signaling + camel signaling functionality by altering the process model a bit. Please find attached the project I used to test these behaviors. Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 04:08:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-querying-for-signal/m-p/39645#M16637</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-08-03T04:08:35Z</dc:date>
    </item>
  </channel>
</rss>

