<?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 Saving form data in ACT_HI_DETAIL using REST API via PHP in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/saving-form-data-in-act-hi-detail-using-rest-api-via-php/m-p/106470#M74523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using PHP and making REST calls to Activiti using their API.&amp;nbsp; When in Activiti Explorer version 5.9, I start the example "Expense process" and then continue on to enter in the "Amount" and "Motivation" and then click "Complete Task".&amp;nbsp; I see that the values from the form get inserted into the ACT_HI_DETAIL and ACT_RU_VARIABLE tables.&amp;nbsp; I then go into Queued -&amp;gt; Management and see the task.&amp;nbsp; I then assign the "Assignee" to myself and then enter something for the question "Do you agree?" and click "Complete Task".&amp;nbsp; I know that the ACT_RU_VARIABLE table is a temporary table in which the variables get deleted when the task is completed and the ACT_HI_DETAIL table is the one that stores the values indefinitely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue that I am having is when using the API.&amp;nbsp; I have a webpage with a form and when I click submit, I then start the process by sending POST variables from my form using the following REST call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$base_url = '&lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service&lt;/A&gt;&lt;SPAN&gt;';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;$auth = array('userId' =&amp;gt; 'kermit', 'password' =&amp;gt; 'kermit');&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$proc = array('processDefinitionId' =&amp;gt; 'adhoc_Expense_process:1:25', 'businessKey' =&amp;gt; 'adhoc_Expense_process_'.date("Y_m_d_H_i_s"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$pest = new PestJSON($base_url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;$pest-&amp;gt;setupAuth($auth['userId'], $auth['password']);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$res_process_instance = $pest-&amp;gt;post('/process-instance',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'processDefinitionId' =&amp;gt; $proc['processDefinitionId'],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'businessKey' =&amp;gt; $proc['businessKey'],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Amount' =&amp;gt; $_POST['amount'],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Motivation' =&amp;gt; $_POST['motivation']&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that the variables go into the ACT_RU_VARIABLE table and that the process is started.&amp;nbsp; Now when I run the API call to complete the task I do&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$res_task_complete = $pest-&amp;gt;put('/task/{task_id}/complete');&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The task gets completed because I do not see it "Tasks" -&amp;gt; "Inbox" tab or the "Process" -&amp;gt; "My Instances" and the entries in the ACT_RU_VARIABLE table are gone but I do not see anything in the ACT_HI_DETAIL table where those values should remain indefinitely.&amp;nbsp; I have tried passing in an array as the second parameter for the call that completes the task but no success.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 15:51:30 GMT</pubDate>
    <dc:creator>blake</dc:creator>
    <dc:date>2012-04-12T15:51:30Z</dc:date>
    <item>
      <title>Saving form data in ACT_HI_DETAIL using REST API via PHP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/saving-form-data-in-act-hi-detail-using-rest-api-via-php/m-p/106470#M74523</link>
      <description>I am using PHP and making REST calls to Activiti using their API.&amp;nbsp; When in Activiti Explorer version 5.9, I start the example "Expense process" and then continue on to enter in the "Amount" and "Motivation" and then click "Complete Task".&amp;nbsp; I see that the values from the form get inserted into the AC</description>
      <pubDate>Thu, 12 Apr 2012 15:51:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/saving-form-data-in-act-hi-detail-using-rest-api-via-php/m-p/106470#M74523</guid>
      <dc:creator>blake</dc:creator>
      <dc:date>2012-04-12T15:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Saving form data in ACT_HI_DETAIL using REST API via PHP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/saving-form-data-in-act-hi-detail-using-rest-api-via-php/m-p/106471#M74524</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;SPAN&gt;maybe you need configure history level in config file. Description is on address &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/index.html#historyConfig" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/index.html#historyConfig&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 17:01:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/saving-form-data-in-act-hi-detail-using-rest-api-via-php/m-p/106471#M74524</guid>
      <dc:creator>mondrus</dc:creator>
      <dc:date>2012-04-12T17:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Saving form data in ACT_HI_DETAIL using REST API via PHP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/saving-form-data-in-act-hi-detail-using-rest-api-via-php/m-p/106472#M74525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&amp;nbsp; That was it….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 20:04:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/saving-form-data-in-act-hi-detail-using-rest-api-via-php/m-p/106472#M74525</guid>
      <dc:creator>blake</dc:creator>
      <dc:date>2012-04-12T20:04:55Z</dc:date>
    </item>
  </channel>
</rss>

