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

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

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • 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
    • ---
    • ---

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: