<?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 Custom RestVariableConverters in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-restvariableconverters/m-p/180699#M133829</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;BR /&gt;&lt;SPAN&gt;First off, thank you for Activiti! It looks really great so far.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to implement a custom RestVariableConverter in order to return my POJO variables as JSON in REST responses. My question is fairly similar to &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/how-create-list-and-map-variables-types-using-rest" rel="nofollow noopener noreferrer"&gt;this one&lt;/A&gt;&lt;SPAN&gt;, but I didn't find a satisfactory answer there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want to clone the REST app. I was hoping I could provide a Spring @Configuration class with a RestResponseFactory @Bean and have Spring Boot pick it up automatically, but it doesn't. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How else can I provide a custom RestResponseFactory? By the way, I'm using 5.17.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Justin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 22:02:55 GMT</pubDate>
    <dc:creator>jsalmon</dc:creator>
    <dc:date>2015-05-07T22:02:55Z</dc:date>
    <item>
      <title>Custom RestVariableConverters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-restvariableconverters/m-p/180699#M133829</link>
      <description>Hi,First off, thank you for Activiti! It looks really great so far.I'm trying to implement a custom RestVariableConverter in order to return my POJO variables as JSON in REST responses. My question is fairly similar to this one, but I didn't find a satisfactory answer there.I don't want to clone the</description>
      <pubDate>Thu, 07 May 2015 22:02:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-restvariableconverters/m-p/180699#M133829</guid>
      <dc:creator>jsalmon</dc:creator>
      <dc:date>2015-05-07T22:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom RestVariableConverters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-restvariableconverters/m-p/180700#M133830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, so I managed to do this by copying org.activiti.spring.boot.RestApiAutoConfiguration and returning a custom RestResponseFactory bean. But I feel like there should be a better way of doing it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 22:36:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-restvariableconverters/m-p/180700#M133830</guid>
      <dc:creator>jsalmon</dc:creator>
      <dc:date>2015-05-07T22:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom RestVariableConverters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-restvariableconverters/m-p/180701#M133831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The REST web application is just an example application with a default config. All the logic is part of the activiti-rest module. An alternative is to use the Spring XML configuration instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 13:14:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-restvariableconverters/m-p/180701#M133831</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-05-13T13:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom RestVariableConverters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-restvariableconverters/m-p/180702#M133832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to copy RestApiAutoConfiguration. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Autowired&lt;/P&gt;&lt;P&gt;private RestResponseFactory restResponseFactory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@PostConstruct&lt;/P&gt;&lt;P&gt;public void addCustomConverters()&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;restResponseFactory.getVariableConverters().add(new YourCustomRestVariableConverter());&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 08:21:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-restvariableconverters/m-p/180702#M133832</guid>
      <dc:creator>blaketsk</dc:creator>
      <dc:date>2017-11-23T08:21:36Z</dc:date>
    </item>
  </channel>
</rss>

