<?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 Form properties vs variables activiti 5.18 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/form-properties-vs-variables-activiti-5-18/m-p/212823#M165953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to get historic data of finished processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have edited acitiviti-custom-content.xml in both webapps (activiti-rest,activiti-explorer) with new property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="history" value="audit" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with MS-SQL database (set db.properties).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created the model via activiti-explorer, so the variables are defined as Form-properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To complete a task, I use rest api, send parameter Variables in the HTTP Content, After i completed the task:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I run Get request:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:1248/activiti-rest/service/history/historic-variable-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:1248/activiti-rest/service/history/historic-variable-instances&lt;/A&gt;&lt;SPAN&gt; -&amp;gt; returns the variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:1248/activiti-rest/service/history/historic-task-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:1248/activiti-rest/service/history/historic-task-instances&lt;/A&gt;&lt;SPAN&gt; - show finished tasks but variable list is empty&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:1248/activiti-rest/service/history/historic-process-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:1248/activiti-rest/service/history/historic-process-instances&lt;/A&gt;&lt;SPAN&gt; - show finished process but variable list is empty&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am i doing wrong ? Why i dont see the variables in task-instances get historic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should we define the form-properties as variables ? When i create the form property i also enter a variable as the form propery id:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;userTask id="Mission1" name="Mission1" activiti:assignee="kermit"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;activiti:formProperty id="FP2" name="FP2" type="string" variable="FP2" required="true"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read in the API that i need to add includeProcessVariables or includeTaskLocalVariables –&amp;gt; 15.8.12. Get historic task instances&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GET history/historic-task-instances. But when i run &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:1248/activiti-rest/service/history/historic-task-instances?includeTaskLocalVariables=true" rel="nofollow noopener noreferrer"&gt;http://localhost:1248/activiti-rest/service/history/historic-task-instances?includeTaskLocalVariables=true&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I also dont get variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Feb 2016 13:02:11 GMT</pubDate>
    <dc:creator>ilansch</dc:creator>
    <dc:date>2016-02-14T13:02:11Z</dc:date>
    <item>
      <title>Form properties vs variables activiti 5.18</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-properties-vs-variables-activiti-5-18/m-p/212823#M165953</link>
      <description>Hi all,I want to get historic data of finished processes.I have edited acitiviti-custom-content.xml in both webapps (activiti-rest,activiti-explorer) with new property:&amp;lt;blockcode&amp;gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&amp;lt;proper</description>
      <pubDate>Sun, 14 Feb 2016 13:02:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-properties-vs-variables-activiti-5-18/m-p/212823#M165953</guid>
      <dc:creator>ilansch</dc:creator>
      <dc:date>2016-02-14T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Form properties vs variables activiti 5.18</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-properties-vs-variables-activiti-5-18/m-p/212824#M165954</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;Have you tried it with the below request ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GET runtime/process-instances/{processInstanceId}/variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read more here : &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#_list_of_variables_for_a_process_instance" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#_list_of_variables_for_a_process_instance&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 06:57:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-properties-vs-variables-activiti-5-18/m-p/212824#M165954</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-02-15T06:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Form properties vs variables activiti 5.18</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-properties-vs-variables-activiti-5-18/m-p/212825#M165955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;SPAN&gt;***SOLVED***&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, The rest api command you wrote will not work when process has finished/Completed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The command that does work and getting the process variables after process has finished and history is working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:1248/activiti-rest/service/history/historic-process-instances/?includeProcessVariables=true&amp;amp;processInstanceId=30011" rel="nofollow noopener noreferrer"&gt;http://localhost:1248/activiti-rest/service/history/historic-process-instances/?includeProcessVariables=true&amp;amp;processInstanceId=30011&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks alot for trying to help !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 12:40:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-properties-vs-variables-activiti-5-18/m-p/212825#M165955</guid>
      <dc:creator>ilansch</dc:creator>
      <dc:date>2016-02-15T12:40:37Z</dc:date>
    </item>
  </channel>
</rss>

