<?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 loses context in a loop in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-loses-context-in-a-loop/m-p/205703#M158833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an userTask using a Javabean (already initialized).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It has a TimerBoundaryEvent attached to it, set with "R/PT5M", which means it is fired every 5 minutes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A sequence flow goes form the timer to a mailTask, and an other returns back from the mailTask to the userTask. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have a loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that when it returns back to the userTask, Activiti cannot find the Java Bean and generates an exception :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.ActivitiException: Error while evaluating expression: ${MyBean.MyValue}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also noticed in the log that it reprocess the xml bpmn resource, as if it were deployed again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems it reinitializes the execution context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried with "cancelActivity=false" and "cancelActivity=true"&amp;nbsp; in the TimerBoundaryEvent without any change .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it means that the userTask is deleted (if "yes") or not (if "no") when it returns back after looping ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why Activiti reprocesses the Bpmn xml file ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you if anyone has any clue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 09:29:57 GMT</pubDate>
    <dc:creator>cnirparis</dc:creator>
    <dc:date>2014-09-03T09:29:57Z</dc:date>
    <item>
      <title>Activiti loses context in a loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-loses-context-in-a-loop/m-p/205703#M158833</link>
      <description>Hello everyone.I have an userTask using a Javabean (already initialized).It has a TimerBoundaryEvent attached to it, set with "R/PT5M", which means it is fired every 5 minutes.A sequence flow goes form the timer to a mailTask, and an other returns back from the mailTask to the userTask. So I have a</description>
      <pubDate>Wed, 03 Sep 2014 09:29:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-loses-context-in-a-loop/m-p/205703#M158833</guid>
      <dc:creator>cnirparis</dc:creator>
      <dc:date>2014-09-03T09:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti loses context in a loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-loses-context-in-a-loop/m-p/205704#M158834</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;The attribute "cancelActivity" specify if the userTask will be deleted or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that in you case, you can use a timerBoundaryEvent with cancelActivity=false without a loop.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 04:03:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-loses-context-in-a-loop/m-p/205704#M158834</guid>
      <dc:creator>mikedias</dc:creator>
      <dc:date>2014-09-04T04:03:43Z</dc:date>
    </item>
  </channel>
</rss>

