<?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 Newbie Data Storage Question in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/newbie-data-storage-question/m-p/175390#M128520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to get task form data (ie&amp;nbsp; activiti:formKey="jiswf:myForm") and I need this&amp;nbsp; data later..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am in an Alfresco environment. And after research, it seems that the form only works for that individual task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My questions are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. if I need to store data across the entire process, what is the best way to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. How does my task access that data,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. And most important, what happens to this data once the workflow is over?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a requirement that I need to list the completed workflows. (This is easy enough) but I need to display my form data along with it.&amp;nbsp;&amp;nbsp; Also I will need&amp;nbsp; this information for historical and reporting purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2014 23:26:19 GMT</pubDate>
    <dc:creator>mangar</dc:creator>
    <dc:date>2014-03-12T23:26:19Z</dc:date>
    <item>
      <title>Newbie Data Storage Question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-data-storage-question/m-p/175390#M128520</link>
      <description>I am trying to get task form data (ie&amp;nbsp; activiti:formKey="jiswf:myForm") and I need this&amp;nbsp; data later..I am in an Alfresco environment. And after research, it seems that the form only works for that individual task.My questions are:1. if I need to store data across the entire process, what is the best</description>
      <pubDate>Wed, 12 Mar 2014 23:26:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-data-storage-question/m-p/175390#M128520</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2014-03-12T23:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Data Storage Question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-data-storage-question/m-p/175391#M128521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Due to the nature of the Worklow API in Alfresco, variable/propery handling is a bit different than with a plain-old activiti standalone. If you want to have variables that live on the process (not on a task-scope), there are 2 ways of doing this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Define the variables in your start-form. The data that is filled in on the start-form will be pushed as variables which live on the process-scope.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Using script or Java-logic, set variables during the process on the execution. This is done in Alfresco default processes using a scriptTaskListener, for example. If you want to have a task set a global variable, use a listener to copy the task.getVariableLocal(…) value into execution.setVariable(…).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Variables that are set on a process-scope can be accessed though scripts/java and can also be exposed in task-forms. General rule is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A task returns/shows a property if:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - The task model declares it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - The task has a LOCAL variable set, even if it's not declared in the task-model&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Property-value will be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - The value of the task local variable for that property&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - If above not available, the process-variable for that property&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - If above not available, the 'default' value configured in the task-model&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - If above not available, null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in case you want to display a process-property on a task, you can just add that property on the task-form, and the global variable will be show.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After a workflow is completed, the variables are still present in the history. You can fetch all completed tasks and all properties associated with them as well…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 08:37:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-data-storage-question/m-p/175391#M128521</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-03-17T08:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Data Storage Question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-data-storage-question/m-p/175392#M128522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow, thank you so much!&amp;nbsp; That explains it all so well. I could not understand why my variables that I was setting when starting the workflow were showing up in my task form data, but now i do!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 14:16:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-data-storage-question/m-p/175392#M128522</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2014-03-17T14:16:47Z</dc:date>
    </item>
  </channel>
</rss>

