<?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 History variables in parallel executions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67144#M42809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've noticed that when history is on full and a parallel task completes with variables associated with it: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;taskService.complete(taskId, vars);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; the variables are not saved against the activityInstanceId or the execution it is running in, but only against the process instance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a JIRA for this &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-815" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-815&lt;/A&gt;&lt;SPAN&gt; with a test case that shows what is happening.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 14:35:01 GMT</pubDate>
    <dc:creator>walterjs</dc:creator>
    <dc:date>2011-05-16T14:35:01Z</dc:date>
    <item>
      <title>History variables in parallel executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67144#M42809</link>
      <description>I've noticed that when history is on full and a parallel task completes with variables associated with it: taskService.complete(taskId, vars);‍ the variables are not saved against the activityInstanceId or the execution it is running in, but only against the process instance. I've created a JIRA for</description>
      <pubDate>Mon, 16 May 2011 14:35:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67144#M42809</guid>
      <dc:creator>walterjs</dc:creator>
      <dc:date>2011-05-16T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: History variables in parallel executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67145#M42810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanx for the jira. I'll look into it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 07:28:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67145#M42810</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-05-24T07:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: History variables in parallel executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67146#M42811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any progress? I think, it is a serious bug. I would like to show the value of the variable connected to the activity. There is a Jira issue (created on 16/May/11) and test case too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you suggest any workaround?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 14:48:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67146#M42811</guid>
      <dc:creator>vicziani</dc:creator>
      <dc:date>2012-07-12T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: History variables in parallel executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67147#M42812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Workaround:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - Use taskService.setvariablesLocal() or delegateTask.setVariableLocal() to ensure task-id is used in history, instead of passing the when calling "completeTask"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - THe variables passed in taskService.complete are written to the process-instance indeed, this is normal behavior. By default (not using setVariableLocal) If there is no variable present for a given key in the task/execution, the parent is checked. If the value key is present on the parent it's set there. This goes on until the root of the execution-tree. If process-instance is reached and no child-executions contained the variable already, it's set on the process-instance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 07:29:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67147#M42812</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-16T07:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: History variables in parallel executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67148#M42813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It works like a charm! Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Workaround:&lt;BR /&gt;&lt;BR /&gt; - Use taskService.setvariablesLocal() or delegateTask.setVariableLocal() to ensure task-id is used in history, instead of passing the when calling "completeTask"&lt;BR /&gt; - THe variables passed in taskService.complete are written to the process-instance indeed, this is normal behavior. By default (not using setVariableLocal) If there is no variable present for a given key in the task/execution, the parent is checked. If the value key is present on the parent it's set there. This goes on until the root of the execution-tree. If process-instance is reached and no child-executions contained the variable already, it's set on the process-instance.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 13:50:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-variables-in-parallel-executions/m-p/67148#M42813</guid>
      <dc:creator>vicziani</dc:creator>
      <dc:date>2012-07-26T13:50:26Z</dc:date>
    </item>
  </channel>
</rss>

