[jboss-jira] [JBoss JIRA] (DROOLS-3075) Set XStream mode via http header

Giovanni Martano (Jira) issues at jboss.org
Wed Oct 3 10:08:01 EDT 2018


Giovanni Martano created DROOLS-3075:
----------------------------------------

             Summary: Set XStream mode via http header
                 Key: DROOLS-3075
                 URL: https://issues.jboss.org/browse/DROOLS-3075
             Project: Drools
          Issue Type: Feature Request
          Components: kie server
    Affects Versions: 7.11.0.Final
            Reporter: Giovanni Martano
            Assignee: Maciej Swiderski


It's very usefull for projects developed via kie-wb to set XStream mode (ID or ID_REFERENCES) similar to how there's a http parameter to switch between xstream xml, jaxb xml and jackson json.
Actually when submit to kie-server an xml body to post for solution (optaplanner feature) an error *com.thoughtworks.xstream.converters.ConversionException: Invalid reference* is raised by kie-server, if the xml have reference to facts using id's instead of XPath.
XML with XPath reference is very hard to read for users and to produce dinamically for app that post/get xml data via rest api.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list