]
Matteo Mortari resolved DROOLS-5973.
------------------------------------
Tester: Daniel Rosa
Resolution: Not a Bug
Java enum values don't match DNM enumerations when input passed
as POJO
-----------------------------------------------------------------------
Key: DROOLS-5973
URL:
https://issues.redhat.com/browse/DROOLS-5973
Project: Drools
Issue Type: Bug
Components: dmn engine
Affects Versions: 7.48.0.Final
Reporter: Andrew K
Assignee: Matteo Mortari
Priority: Minor
Attachments: screenshot-1.png, screenshot-2.png, screenshot-3.png,
screenshot-4.png
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:
{code:java}
new ObjectMapper().convertValue(pojo, Map.class){code}
but this should not be necessary.