<?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: Failed to serialize to a RestVariable instance in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/failed-to-serialize-to-a-restvariable-instance/m-p/10581#M4715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;update my code for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List&amp;lt;Map&amp;lt;String, String&amp;gt;&amp;gt; maps = new ArrayList&amp;lt;&amp;gt;();&lt;BR /&gt; Map&amp;lt;String, String&amp;gt; map = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt; map.put("name", "variable");&lt;BR /&gt; map.put("type", "string");&lt;BR /&gt; map.put("value", "value");&lt;BR /&gt; maps.add(map);&lt;BR /&gt; String json = new Gson().toJson(maps);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" data-fulltext="" data-placeholder="Traducción" dir="ltr" style="color: #212121 !important; background-color: transparent; border: none; font-weight: normal !important; font-size: 16px !important; padding: 0px 0.14em 0px 0px;"&gt;&lt;SPAN lang="en" style="border: 0px; font-weight: inherit; font-size: 16px;"&gt;Regards! &lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2017 18:33:51 GMT</pubDate>
    <dc:creator>davidparraz41</dc:creator>
    <dc:date>2017-05-30T18:33:51Z</dc:date>
    <item>
      <title>Failed to serialize to a RestVariable instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/failed-to-serialize-to-a-restvariable-instance/m-p/10579#M4713</link>
      <description>I'm trying to save a new variable to my process via REST API, but when I run the POST, the console shows me the following error:response.body({"message":"Bad request","exception":"Failed to serialize to a RestVariable instance"})MY CODE&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tring name = "variable";String type = "string";String value =</description>
      <pubDate>Tue, 30 May 2017 16:26:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/failed-to-serialize-to-a-restvariable-instance/m-p/10579#M4713</guid>
      <dc:creator>davidparraz41</dc:creator>
      <dc:date>2017-05-30T16:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to serialize to a RestVariable instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/failed-to-serialize-to-a-restvariable-instance/m-p/10580#M4714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because RestVariable class does not implement Serializable interface.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/engine/variable/RestVariable.java" title="https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/engine/variable/RestVariable.java" rel="nofollow noopener noreferrer"&gt;Activiti/RestVariable.java at master · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 17:14:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/failed-to-serialize-to-a-restvariable-instance/m-p/10580#M4714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-30T17:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to serialize to a RestVariable instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/failed-to-serialize-to-a-restvariable-instance/m-p/10581#M4715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;update my code for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List&amp;lt;Map&amp;lt;String, String&amp;gt;&amp;gt; maps = new ArrayList&amp;lt;&amp;gt;();&lt;BR /&gt; Map&amp;lt;String, String&amp;gt; map = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt; map.put("name", "variable");&lt;BR /&gt; map.put("type", "string");&lt;BR /&gt; map.put("value", "value");&lt;BR /&gt; maps.add(map);&lt;BR /&gt; String json = new Gson().toJson(maps);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" data-fulltext="" data-placeholder="Traducción" dir="ltr" style="color: #212121 !important; background-color: transparent; border: none; font-weight: normal !important; font-size: 16px !important; padding: 0px 0.14em 0px 0px;"&gt;&lt;SPAN lang="en" style="border: 0px; font-weight: inherit; font-size: 16px;"&gt;Regards! &lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 18:33:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/failed-to-serialize-to-a-restvariable-instance/m-p/10581#M4715</guid>
      <dc:creator>davidparraz41</dc:creator>
      <dc:date>2017-05-30T18:33:51Z</dc:date>
    </item>
  </channel>
</rss>

