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

Java enum values don't match DNM enumerations when input passed as POJO

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 7.48.0.Final
    • dmn engine
    • None
    • 2021 Week 07-09 (from Feb 15), 2021 Week 10-12 (from Mar 8), 2021 Week 13-15 (from Mar 29), 2021 Week 16-18 (from Apr 19), 2021 Week 19-21 (from May 10), 2021 Week 22-24 (from May 31), 2021 Week 25-27 (from Jun 21), 2021 Week 28-30 (from Jul 12), 2021 Week 31-33 (from Aug 2), 2021 Week 34-36 (from Aug 23)
    • Undefined
    • NEW
    • NEW
    • ---
    • ---

      When passing an input object into the DMN engine as a POJO, enumerations represented in the POJO as Java enums do not correctly match DMN string enumerations.

      This can be worked around by converting the input to a Map using Jackson:

      new ObjectMapper().convertValue(pojo, Map.class)

      but this should not be necessary.

        1. screenshot-1.png
          85 kB
          Matteo Mortari
        2. screenshot-2.png
          98 kB
          Matteo Mortari
        3. screenshot-3.png
          80 kB
          Matteo Mortari
        4. screenshot-4.png
          96 kB
          Matteo Mortari

              Unassigned Unassigned
              andrew__k Andrew K (Inactive)
              Daniel Rosa Daniel Rosa
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: