In FEEL Scala Engine, I can compare POJOs with > < = operators

XMLWordPrintable

    • Type: Feature Request
    • Resolution: Won't Fix
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: 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

      1. Use a pojo variable as input expression
      2. 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.

            Assignee:
            Tassilo Weidner-Mühl
            Reporter:
            Tassilo Weidner-Mühl
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: