Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-3075

Set XStream mode via http header

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Minor
    • None
    • 7.11.0.Final
    • kie server
    • None
    • Documentation (Ref Guide, User Guide, etc.), User Experience
    • NEW
    • NEW

    Description

      Currently kie-server only supports XPath references in XStream. Add a http header to make kie-server's XStream marshaller call:

        xStream.setMode(XStream.ID_REFERENCES);
      

      Motivation by community user:

      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.

      Attachments

        Activity

          People

            rhn-support-tkobayas Toshiya Kobayashi
            giomar68 Giovanni Martano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: