Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3400

Be able to set with an Env Variable that KIE using XStream does not complain on unknown fields

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 7.11.0.GA
    • None
    • Kie-Server
    • None
    • In our project "Migration Analytics" we have our integration (camel) app sending requests to the KIE Server. Everything deployed on Openshift.

    • 2020 Week 52-03 (from Dec 21)

      In our project "Migration Analytics" we have our integration (camel) app sending requests to the KIE Server. Everything deployed on Openshift.

      Sometimes the integration app evolves adding new fields to the user payload pojos being sent to KIE, but now we need to wait for the changes done on the project deployed in KIE to be able to merge the first PR on the integration.

      I know XStream has a method called ".ignoreUnknownElements()" so the proposal would be to have an environment variable that KIE would read and execute that method ONLY ON THE USER PAYLOAD OBJECT (not in the system object taxonomy being sent) just after creating the unmarshaller

      Eng Solution

      If user wants to ignore unknown fields in pojos being sent to the server, it has to add "ignore-unknown-elements = true" parameter to content type of the request in order to make it work . This implies the decision to ignore or not will be taken by request, Kie server won't support a wide flag for doing this.

            ftirados Francisco Javier Tirado Sarti
            jvilalop@redhat.com Jonathan Vila Lopez (Inactive)
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: