<?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: Process variable content not properly passed to subprocess in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130902#M91961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Numbers of service tasks: Incoming 13, Operate 61, Confirm 21, Syn 5&lt;BR /&gt;Processes generally contain loops, but in the case described no loop is executed more than once. All service tasks have exactly 1 outgoing connector into an Exclusive Gateway that dispatches on the result of the node. So roughly, there are as many Exclusive Gateways as there are service tasks (merge gateways not counted).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Those numbers aren't really high … that should be no problem. Like I said, it was designed to cope with that, but I'm feeling something might went wrong there …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any help would be highly appreciated, as the huge stack is really a show-stopper for us.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It's pretty hard to test without a test case. But I'll to to reproduce it myself locally. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, please do take in mind what I said about long transactions. That's why we added async continuations. I've seen plenty of DBA's going wild over keeping open transactions for a long time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Mar 2013 08:53:49 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2013-03-15T08:53:49Z</dc:date>
    <item>
      <title>Process variable content not properly passed to subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130899#M91958</link>
      <description>Dear community,I am stuck in a problem related to parameter passing and asynchronous subprocess calls and I hope that somebody can help me &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;We are evaluating the use of Activiti (5.11) in a current project. We created some processes (which I cannot attach here) to get acquainted with Activiti.The p</description>
      <pubDate>Tue, 12 Mar 2013 18:39:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130899#M91958</guid>
      <dc:creator>waldo</dc:creator>
      <dc:date>2013-03-12T18:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Process variable content not properly passed to subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130900#M91959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's pretty hard to say with only this description of course, but&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The stack was ~1700 items deep(!)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That for sure doesn't sound right.&amp;nbsp; We do have a mechanism in place to avoid using the stack, but from what I read it might be broken here. How many steps does the process contain once you trigger it. Also keep in mind that the transaction will be open for the whole duration of all steps… some database (Oracle definitely) don't really like that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 09:13:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130900#M91959</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-13T09:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Process variable content not properly passed to subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130901#M91960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately I'm not allowed to upload process definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some more info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically all our activities are Java Service Tasks configured via delegate expressions, often times with start listeners attached:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="prepareAuthentication" name="prepareAuthentication" activiti:delegateExpression="${nd_PrepareAuthentication}"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="setStateProcessing" name="setStateProcessing" activiti:delegateExpression="${nd_SetState}"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:executionListener event="start" class="com…..ServiceTaskListener"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="parameterName"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;state&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="parameter"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;IN_PROGRESS&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:executionListener&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Numbers of service tasks: Incoming 13, Operate 61, Confirm 21, Syn 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Processes generally contain loops, but in the case described no loop is executed more than once. All service tasks have exactly 1 outgoing connector into an Exclusive Gateway that dispatches on the result of the node. So roughly, there are as many Exclusive Gateways as there are service tasks (merge gateways not counted).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Call activities are defined thus:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callActivity id="ConfirmationRequestCreateAndPublish" name="ConfirmationRequestCreateAndPublish" activiti:async="true" calledElement="ConfirmationRequestCreateAndPublish"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:in source="PAYLOAD" target="PAYLOAD"&amp;gt;&amp;lt;/activiti:in&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:smileysurprised:ut source="PAYLOAD" target="PAYLOAD"&amp;gt;&amp;lt;/activiti:smileysurprised:ut&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/callActivity&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Processes are started using&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.RuntimeService.startProcessInstanceByKey(String, String, Map&amp;lt;String, Object&amp;gt;)&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The message that is being sent from Incoming to Operate is realised via:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.RuntimeService.messageEventReceived(String, String, Map&amp;lt;String, Object&amp;gt;)&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to attach the stack trace and Spring configuration, but the forum doesn't let me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be highly appreciated, as the huge stack is really a show-stopper for us.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 15:35:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130901#M91960</guid>
      <dc:creator>waldo</dc:creator>
      <dc:date>2013-03-13T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Process variable content not properly passed to subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130902#M91961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Numbers of service tasks: Incoming 13, Operate 61, Confirm 21, Syn 5&lt;BR /&gt;Processes generally contain loops, but in the case described no loop is executed more than once. All service tasks have exactly 1 outgoing connector into an Exclusive Gateway that dispatches on the result of the node. So roughly, there are as many Exclusive Gateways as there are service tasks (merge gateways not counted).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Those numbers aren't really high … that should be no problem. Like I said, it was designed to cope with that, but I'm feeling something might went wrong there …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any help would be highly appreciated, as the huge stack is really a show-stopper for us.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It's pretty hard to test without a test case. But I'll to to reproduce it myself locally. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, please do take in mind what I said about long transactions. That's why we added async continuations. I've seen plenty of DBA's going wild over keeping open transactions for a long time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 08:53:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130902#M91961</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-15T08:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Process variable content not properly passed to subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130903#M91962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I analysed Activiti stack behavior further and I am surprised by its stack consumption.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The simplest looping process consisting of a single synchronous service task increasing process variable N and one gateway checking N:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start -&amp;gt; ServiceTask -&amp;gt; Gateway&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gateway [N &amp;gt;= 1000] -&amp;gt; End&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gateway [N &amp;lt; 1000] -&amp;gt; ServiceTask&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;representing a loop like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;while (N &amp;lt; 1000) do&lt;BR /&gt;&amp;nbsp; N = N + 1 // ServiceTask&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;exits with a StackOverflowError after only 114 iterations. In every iteration the stack grows by roughly 80 elements!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide some details about the mechanism to avoid using the stack? How can I enable it, except by using async tasks, which would increase DB interaction quite drastically?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 07:04:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130903#M91962</guid>
      <dc:creator>waldo</dc:creator>
      <dc:date>2013-03-19T07:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Process variable content not properly passed to subprocess</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130904#M91963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm that sounds scary and buggy. When that piece was implemented (int he atomic operations) it wasn't the case, I checked it back then. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll look into it and see if there are workarounds/fixes that quickly can be made&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 09:50:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-content-not-properly-passed-to-subprocess/m-p/130904#M91963</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-20T09:50:54Z</dc:date>
    </item>
  </channel>
</rss>

