<?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: Request mapping with variables in REST call task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22300#M9765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a variable with JSON content in a JSON template will not work. The value will be converted to a string (with any needed escape clauses like \"). Thats why you're getting a 400 response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your use case, maybe there is another way achieve what you are trying to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2018 09:48:55 GMT</pubDate>
    <dc:creator>bassam_al-saror</dc:creator>
    <dc:date>2018-07-04T09:48:55Z</dc:date>
    <item>
      <title>Request mapping with variables in REST call task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22297#M9762</link>
      <description>The API PUT call I am trying to make definitely works when I am using /api-explorer.html/ or Postman, but when using built-in task it gives me error when executing with status 400.In Request mapping I have selected JSON Template and put&amp;nbsp;${myVar} in it. That produces the error. In an user task before</description>
      <pubDate>Wed, 27 Jun 2018 13:03:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22297#M9762</guid>
      <dc:creator>savo</dc:creator>
      <dc:date>2018-06-27T13:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Request mapping with variables in REST call task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22298#M9763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your app? I'm not sure I understood what are you trying to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 13:05:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22298#M9763</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-03T13:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Request mapping with variables in REST call task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22299#M9764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have uploaded my app (check the post). The variable is called &lt;STRONG&gt;jeff&lt;/STRONG&gt;. It is a result of&amp;nbsp;a:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px;"&gt;&lt;A href="http://localhost:8090/activiti-app/api-explorer.html#!/form-models/getFormUsingGET" style="color: white; background-color: #0f6ab4; border: 0px; font-weight: inherit; text-decoration: none; font-size: 0.7em; padding: 7px 0px 4px;" rel="nofollow noopener noreferrer"&gt;GET&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; padding: 0px 0px 0px 10px;"&gt;&lt;A href="http://localhost:8090/activiti-app/api-explorer.html#!/form-models/getFormUsingGET" style="color: black; border: 0px; text-decoration: underline;" rel="nofollow noopener noreferrer"&gt;/enterprise/editor/form-models/{formId}&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you want for this app to work enter some valid formId (mine was 8009). This form had a drop down list. Using javascript, I add to the list of available options field value I have entered in the start form. I then display that modified js object in an user task, and try to do api call(note the format):&lt;/SPAN&gt;&lt;/P&gt;&lt;H3 style="border: 0px; font-weight: inherit; font-size: 1.1em; padding: 0px;" id="toc-hId-1157124276"&gt;&lt;SPAN class="" style="border: 0px; padding: 0px;"&gt;&lt;A class="" href="http://localhost:8090/activiti-app/api-explorer.html#!/form-models/saveFormUsingPUT" style="color: white; background-color: #c5862b; border: 0px; font-weight: inherit; text-decoration: none; font-size: 0.7em; padding: 7px 0px 4px;" rel="nofollow noopener noreferrer"&gt;PUT&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px;"&gt;&lt;A class="" href="http://localhost:8090/activiti-app/api-explorer.html#!/form-models/saveFormUsingPUT" style="color: black; border: 0px; text-decoration: underline; padding: 0px;" rel="nofollow noopener noreferrer"&gt;/enterprise/editor/form-models/{formId}&lt;/A&gt;&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px;"&gt;but it returns a http error. If I manually copy-paste, what was displayed in the user task, in api-explorer, postman or wherever, I get the result I expect, i.e. an updated list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px;"&gt;Already tried a plethora of header, mapping, variable name combinations, nothing worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 18:05:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22299#M9764</guid>
      <dc:creator>savo</dc:creator>
      <dc:date>2018-07-03T18:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Request mapping with variables in REST call task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22300#M9765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a variable with JSON content in a JSON template will not work. The value will be converted to a string (with any needed escape clauses like \"). Thats why you're getting a 400 response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your use case, maybe there is another way achieve what you are trying to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 09:48:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22300#M9765</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-04T09:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Request mapping with variables in REST call task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22301#M9766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;supposed that's what was happening. I want some way to add to (and delete from) the dropdown list of some specific form.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Of course, without someone using app designer and changing the process. I want it to be done at runtime so It can be observed and be more accessible.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 15:36:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/request-mapping-with-variables-in-rest-call-task/m-p/22301#M9766</guid>
      <dc:creator>savo</dc:creator>
      <dc:date>2018-07-04T15:36:30Z</dc:date>
    </item>
  </channel>
</rss>

