<?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: Set form variable scope as local in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203504#M156634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't change the behaviour of the form-properties for the moment, I'm afraid. What you can do is add a task-listener (on complete) that copies those properties from the execution-scope to the task-scope. Since you're in the same transaction when you're listener is executed, you're 100% sure the values submitted on the current execution are the ones from the task that just completed…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You an create some kind of generic listener that inspects what properties could have been submitted and copies those, regardless of the task-type…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 07:51:24 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2014-07-29T07:51:24Z</dc:date>
    <item>
      <title>Set form variable scope as local</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203502#M156632</link>
      <description>My use case as following :An array of objects enters the process. The process then goes through a loop task, with loopCardinality as the size of the array. Each execution instance of the loop is then assigned an object as a local variable. Now, each of these instances then go through an user task, w</description>
      <pubDate>Fri, 25 Jul 2014 16:39:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203502#M156632</guid>
      <dc:creator>adityap174</dc:creator>
      <dc:date>2014-07-25T16:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set form variable scope as local</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203503#M156633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Forgot to mention. Activiti version is 5.15.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 17:09:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203503#M156633</guid>
      <dc:creator>adityap174</dc:creator>
      <dc:date>2014-07-25T17:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set form variable scope as local</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203504#M156634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't change the behaviour of the form-properties for the moment, I'm afraid. What you can do is add a task-listener (on complete) that copies those properties from the execution-scope to the task-scope. Since you're in the same transaction when you're listener is executed, you're 100% sure the values submitted on the current execution are the ones from the task that just completed…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You an create some kind of generic listener that inspects what properties could have been submitted and copies those, regardless of the task-type…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 07:51:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203504#M156634</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-29T07:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set form variable scope as local</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203505#M156635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for updating an existing request.&amp;nbsp; We also have similar requirement.&amp;nbsp; In the solution suggested above, it is mentioned that a task listener can be used to copy the property from execution scope to the task scope.&amp;nbsp; I am not sure how to do this.&amp;nbsp; On completion of the current task, I do have the value of the property, but how do I add a task local variable to the next task that is not yet created.&amp;nbsp; Please suggest.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 09:20:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203505#M156635</guid>
      <dc:creator>anjan</dc:creator>
      <dc:date>2015-07-16T09:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set form variable scope as local</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203506#M156636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't add a variable to the next task, instead Activiti works with process or scoped variables to achieve this. You can copy a local variable to the process or other scoped context by invoking runtimeService.setVariable. This will also make sure that the variable is available in the next task (and any next activity in the process).&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>Fri, 17 Jul 2015 06:33:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203506#M156636</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-07-17T06:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set form variable scope as local</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203507#M156637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Tijs for the update.&amp;nbsp; Our use case is that certain set of follow up tasks need to be completed based on the variable.&amp;nbsp; If the variable is updated, the the next set of follow up tasks and all the previous follow up tasks(which are still pending) will have the updated variable value which is not desired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I thought of using Sub Process and the above behaviour is same for the embedded sub process.&amp;nbsp; Instead I switched to a Standalone sub process.&amp;nbsp; Now it is working correctly.&amp;nbsp; I pass the required variables from the main process to the sub process and the variable update on the main process will not impact the sub process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 12:16:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-form-variable-scope-as-local/m-p/203507#M156637</guid>
      <dc:creator>anjan</dc:creator>
      <dc:date>2015-07-17T12:16:13Z</dc:date>
    </item>
  </channel>
</rss>

