-
Feature Request
-
Resolution: Won't Fix
-
L3 - Default
-
None
-
None
-
None
-
None
This is a breaking change; The legacy FEEL Engine can compare Java objects in case the Comparable interface was implemented
Steps to reproduce
- Use a pojo variable as input expression
- Use the pojo variable in the input rule (implicit equals)
Observed behavior
I see the following exception:
16:35:38.734 [main] ERROR org.camunda.bpm.engine.context - ENGINE-16004 Exception while closing command context: failed to evaluate expression 'pojo': expected Number, Boolean, String, Date, Time or Duration but found 'ValContext(CacheContext(ObjectContext(TestPojo{foo='okay', bar=13.37})))' org.camunda.bpm.dmn.feel.impl.FeelException: failed to evaluate expression 'pojo': expected Number, Boolean, String, Date, Time or Duration but found 'ValContext(CacheContext(ObjectContext(TestPojo{foo='okay', bar=13.37})))'
Expected behavior
Pojos can be compared.