<?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: REST Call Put method with request mapping in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30587#M13003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to update a process variable in the current process instance and you want to use the REST connector?&lt;/P&gt;&lt;P&gt;Honestly, this is just dumb.&lt;/P&gt;&lt;P&gt;Use a script task/listener with the execution setVariable() call.&lt;/P&gt;&lt;P&gt;If you are afraid of scripting and Java, then Activiti is not the environment for you,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Mar 2017 12:49:24 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-03-20T12:49:24Z</dc:date>
    <item>
      <title>REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30584#M13000</link>
      <description>Hello everyone,I want to update several variables existing in an array with REST Callendpoint : api/runtime/process-instances/${id}/variablesMethod : PUTBut in Activiti only we are allowed to update one variable because of the request mappingI am using Alfresco ActivitiPlease any help is appreciated</description>
      <pubDate>Tue, 14 Mar 2017 16:39:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30584#M13000</guid>
      <dc:creator>bhchemss</dc:creator>
      <dc:date>2017-03-14T16:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30585#M13001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure i understand your problem.&lt;/P&gt;&lt;P&gt;The API you cite allows you to update as many variables as you wish within the instance.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "name":"intProcVar"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "type":"integer"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "value":123&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "name":"anotherProcVar"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "type":"string"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "value":"myStrong"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:45:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30585#M13001</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-15T15:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30586#M13002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but I am using Alfreco Activiti environment , so how can I map this request as json body into the request mapping ?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/13025_pastedImage_1.png" style="width: 620px; height: 308px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Mar 2017 16:38:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30586#M13002</guid>
      <dc:creator>bhchemss</dc:creator>
      <dc:date>2017-03-19T16:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30587#M13003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to update a process variable in the current process instance and you want to use the REST connector?&lt;/P&gt;&lt;P&gt;Honestly, this is just dumb.&lt;/P&gt;&lt;P&gt;Use a script task/listener with the execution setVariable() call.&lt;/P&gt;&lt;P&gt;If you are afraid of scripting and Java, then Activiti is not the environment for you,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 12:49:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30587#M13003</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-20T12:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30588#M13004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your reply is kind of rude.&lt;/P&gt;&lt;P&gt;I just want to update variables of parent process with rest inside a call activity and not in same process, if you don't have an answer you can just not reply.thank you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 12:55:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30588#M13004</guid>
      <dc:creator>bhchemss</dc:creator>
      <dc:date>2017-03-20T12:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30589#M13005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just trying to save you a lot of pain.&lt;/P&gt;&lt;P&gt;You cannot build a non trivial Activiti process solution without using Java and scripts, it was one of the basic premises of the platform from inception to take BPM to developers.&lt;/P&gt;&lt;P&gt;Apologies if you found my answer rude.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 13:02:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30589#M13005</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-20T13:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30590#M13006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apology accepted, thank you for your advice I will take it in consideration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 13:07:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30590#M13006</guid>
      <dc:creator>bhchemss</dc:creator>
      <dc:date>2017-03-20T13:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30591#M13007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to update/add a variable to a parent process from child via a groovy script, the following will do&lt;/P&gt;&lt;P&gt;runtimeService.setVariable( execution.getSuperExecutionId(), 'varname', 'varvalue');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 00:55:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30591#M13007</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-03-27T00:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30592#M13008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you , this works like a charm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 19:00:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30592#M13008</guid>
      <dc:creator>bhchemss</dc:creator>
      <dc:date>2017-03-27T19:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Put method with request mapping</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30593#M13009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Btw, you can now do request body JSON mapping in the newer version of the product which was released last week. See&amp;nbsp;&lt;A class="link-titled" href="http://docs.alfresco.com/process-services1.6/topics/rest_call.html" title="http://docs.alfresco.com/process-services1.6/topics/rest_call.html" rel="nofollow noopener noreferrer"&gt;REST call | Alfresco Documentation&lt;/A&gt;&amp;nbsp; for more details.&lt;/P&gt;&lt;P&gt;However as Greg said, a script/service task would be more appropriate in this particular use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 19:16:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-call-put-method-with-request-mapping/m-p/30593#M13009</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-03-27T19:16:36Z</dc:date>
    </item>
  </channel>
</rss>

