AnsweredAssumed Answered

How to set my CustomRestResponseFactory with spring config

Question asked by ppcchh on Mar 21, 2017
Latest reply on Mar 24, 2017 by ppcchh

Hello,

 

I am trying to make activiti-rest returning process variable of json type.

 

For this I understood I needed to add a JsonRestVariableConverter and register it in a CustomRestResponseFactory.

 

I use spring to configure my web application but when I try to override the RestResponseFactory, my class is not found  at server startup, although it is on classpath.

<bean id="restResponseFactory" class="mycompany.activiti.rest.CustomRestResponseFactory" />

I have read a post from 2014 which says :

If you want to customise RestResponseFactory the best way is too clone the REST application and change the RestConfiguration class:

Is it still true, is there no way to configure it via Spring ?

 

Thank you !

Stephane

Outcomes