<?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 Rest-API difficulty updating formProperties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-difficulty-updating-formproperties/m-p/197513#M150643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having difficultly performing a simple property update via the REST-API.&amp;nbsp; I've successfully worked out creating and listing info from Activiti, but I just can't seem to set a property.&amp;nbsp; The json converted property looks to be properly formed, but I still keep getting the error "resulted in 400 (Bad Request)" on execute.&amp;nbsp; The user’s guide suggests that this is likely happening because of a difference in property scope, but a simple query of all formProperties on this process shows them all as 'local', just as I'm putting into my json.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any chance of somebody setting me straight?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti version: 5.15.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String url = &lt;/SPAN&gt;&lt;A href="http://myServer/activiti-rest/service/runtime/process-instances/25762/variables" rel="nofollow noopener noreferrer"&gt;http://myServer/activiti-rest/service/runtime/process-instances/25762/variables&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;RestTemplate restTemplate = getRestTemplate();&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;–Spring restTemplate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restTemplate.put(url, request);&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;– Spring HttpEntity for request&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Request object content before calling 'put' is….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;{"name":"cmoApproved","type":"string","value":"true","scope":"local"},{Content-Type=[application/json]}&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rest should be making this simple for me as there are only a few elements to deal with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) URL&amp;nbsp; &amp;lt;– matches users guide…see above&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) json formatted variable array&amp;nbsp; &amp;lt;– matches user guide&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) request method (put, post, get)&amp;nbsp; &amp;lt;– performing put to update variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could my request object be missing something?&amp;nbsp; Any help would be greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2014 19:44:11 GMT</pubDate>
    <dc:creator>jyerger</dc:creator>
    <dc:date>2014-08-18T19:44:11Z</dc:date>
    <item>
      <title>Rest-API difficulty updating formProperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-difficulty-updating-formproperties/m-p/197513#M150643</link>
      <description>I'm having difficultly performing a simple property update via the REST-API.&amp;nbsp; I've successfully worked out creating and listing info from Activiti, but I just can't seem to set a property.&amp;nbsp; The json converted property looks to be properly formed, but I still keep getting the error "resulted in 400 (</description>
      <pubDate>Mon, 18 Aug 2014 19:44:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-difficulty-updating-formproperties/m-p/197513#M150643</guid>
      <dc:creator>jyerger</dc:creator>
      <dc:date>2014-08-18T19:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rest-API difficulty updating formProperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-difficulty-updating-formproperties/m-p/197514#M150644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at the user guide, is seems a json array is passed. Did you try that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 11:08:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-difficulty-updating-formproperties/m-p/197514#M150644</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-08-19T11:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rest-API difficulty updating formProperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-difficulty-updating-formproperties/m-p/197515#M150645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Worked like a charm.&amp;nbsp; Don't I feel foolish.&amp;nbsp; Too much time spent in a chair yesterday I guess. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 13:19:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-difficulty-updating-formproperties/m-p/197515#M150645</guid>
      <dc:creator>jyerger</dc:creator>
      <dc:date>2014-08-19T13:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rest-API difficulty updating formProperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-difficulty-updating-formproperties/m-p/197516#M150646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No problem, glad it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 15:09:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-difficulty-updating-formproperties/m-p/197516#M150646</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-08-20T15:09:40Z</dc:date>
    </item>
  </channel>
</rss>

