Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11319

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

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Fix
    • Icon: L3 - Default 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

      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.

        This is the controller panel for Smart Panels app

              tassilo.weidner Tassilo Weidner
              tassilo.weidner Tassilo Weidner
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: