<?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 Multiple receive tasks waiting for signal at the same time in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182782#M135912</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 use Activiti + Camel in my program. Simply put the program is a "form signing application" where I have a form that needs to be signed by a group of people. When everyone has signed the form, the signed form is archived and we're done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in my BPMN diagram, I fetch the contact email of one person, then use parallel gateway which goes to fetch next person's contact details and which creates a subprocess. Subprocess has a receive task which waits for a message that person has signed the form. When person signs, subprocess is killed and we mark that person has signed the form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if there's person A, B and C, then 3 subprocess have been created and 3 receive tasks wait for a signal that form has been signed. So when one person signs the form, I call the receive task from Camel like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;to uri="activiti:SigningProcess:WaitForNotificationForSignatureTask"/&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem is that I get the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ActivitiException: Query return 3 results instead of max 1.&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess it does that because there's 3 receive tasks waiting for a message and when I call the task, Activiti gets confused which 3 of them I'm calling. My program logic doesn't really care which one of them I'm calling so I'd like to arbitrarily call one of them and move on, is this possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2015 10:04:38 GMT</pubDate>
    <dc:creator>kenrobrt</dc:creator>
    <dc:date>2015-07-08T10:04:38Z</dc:date>
    <item>
      <title>Multiple receive tasks waiting for signal at the same time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182782#M135912</link>
      <description>Hi,I use Activiti + Camel in my program. Simply put the program is a "form signing application" where I have a form that needs to be signed by a group of people. When everyone has signed the form, the signed form is archived and we're done.So in my BPMN diagram, I fetch the contact email of one pers</description>
      <pubDate>Wed, 08 Jul 2015 10:04:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182782#M135912</guid>
      <dc:creator>kenrobrt</dc:creator>
      <dc:date>2015-07-08T10:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple receive tasks waiting for signal at the same time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182783#M135913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Forgot to mention that contact emails are needed for sending a notification to the person that he has a form to sign.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;3 receive tasks wait for a signal&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So I guess it does that because there's 3 receive tasks waiting for a message&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Sorry, I meant 3 instances of this one specific receive task, not 3 different tasks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 10:26:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182783#M135913</guid>
      <dc:creator>kenrobrt</dc:creator>
      <dc:date>2015-07-08T10:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple receive tasks waiting for signal at the same time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182784#M135914</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;In the current Camel integration implementation we send the process instance id to the exchange and that's also used to signal a task in the process again when Camel returns. So currently there can only be one active execution for a specific activityId. I fully understand your use case and I would be more than happy to get this working by also adding an execution id to the Camel exchange, so that can be used to signal the correct receive task instance. Could you create a JIRA issue, then I'll look into it rightaway.&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, 09 Jul 2015 07:04:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182784#M135914</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-07-09T07:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple receive tasks waiting for signal at the same time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182785#M135915</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 created the issue: &lt;/SPAN&gt;&lt;A href="https://activiti.atlassian.net/browse/ACT-4033" rel="nofollow noopener noreferrer"&gt;https://activiti.atlassian.net/browse/ACT-4033&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot! Are you planning to make a new release sometime near future or do you have any alternative solutions in mind for my case? I initially made a sequential version where I wait for one person to sign before I send notification about signing to the next person.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 07:50:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182785#M135915</guid>
      <dc:creator>kenrobrt</dc:creator>
      <dc:date>2015-07-09T07:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple receive tasks waiting for signal at the same time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182786#M135916</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;Thanks for the JIRA issue. Yes we are planning to release 5.18 this month. I'll look into this issue today or tomorrow and see if I can solve 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>Thu, 09 Jul 2015 08:59:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-receive-tasks-waiting-for-signal-at-the-same-time/m-p/182786#M135916</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-07-09T08:59:34Z</dc:date>
    </item>
  </channel>
</rss>

