<?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 Activiti camel: problem with receive task within multi-instance subprocess in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-problem-with-receive-task-within-multi-instance/m-p/241836#M194966</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'm using Activiti together with Camel. I have a multi-instance subprocess which contains a receive task. Basically it loops a list of persons which are sent email that they need to sign a form in a website. When person signs the form, receive task is signaled and the process goes forward. We then move on to send confirmation email to this person that he has successfully signed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed that if multiple signers sign at the same time (e.g. two signers), then receive tasks are signaled roughly at the same time. When we send confirmation email to those two signers, both emails are sent to the latter person who signed. I researched this a little bit and I think this happens because the camel body (which contains information about the signer, like signer name, email address etc.) of the first instance is copied to Activiti, then it is overwritten by the camel body of the second instance. Then when we move on from the receive task to do the email sending in Camel, the Activiti camelBody is copied to camel body and it contains information about the last signer in both instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is my way of thinking correct and if so, does Activiti provide any ways to solve this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2016 13:18:19 GMT</pubDate>
    <dc:creator>kenrobrt</dc:creator>
    <dc:date>2016-04-08T13:18:19Z</dc:date>
    <item>
      <title>Activiti camel: problem with receive task within multi-instance subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-problem-with-receive-task-within-multi-instance/m-p/241836#M194966</link>
      <description>Hi,I'm using Activiti together with Camel. I have a multi-instance subprocess which contains a receive task. Basically it loops a list of persons which are sent email that they need to sign a form in a website. When person signs the form, receive task is signaled and the process goes forward. We the</description>
      <pubDate>Fri, 08 Apr 2016 13:18:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-problem-with-receive-task-within-multi-instance/m-p/241836#M194966</guid>
      <dc:creator>kenrobrt</dc:creator>
      <dc:date>2016-04-08T13:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti camel: problem with receive task within multi-instance subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-problem-with-receive-task-within-multi-instance/m-p/241837#M194967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the variables are indeed stored in the regular way (setVariable), then they will be overwritten indeed. One workaround is to have a little executionListener that copies the variables to either a unique name or sets it execution-local.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 09:43:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-problem-with-receive-task-within-multi-instance/m-p/241837#M194967</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-04-12T09:43:41Z</dc:date>
    </item>
  </channel>
</rss>

