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

Improve error message for Msg.EXPRESSION_IS_RANGE_BUT_VALUE_IS_NOT_COMPARABLE

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • None
    • None
    • dmn engine
    • None
    • 2018 Week 19-22
    • NEW
    • NEW

    Description

      When the following expression is evaluated:

       duration(\"PT24H\") in[ duration(\"P1Y2M\") .. duration(\"P1Y3M\")] 
      

      it is generating:

      Value 'PT24H' is not comparable with range '[ org.kie.dmn.feel.lang.ast.RangeNode$ComparablePeriod@e .. org.kie.dmn.feel.lang.ast.RangeNode$ComparablePeriod@f ]'
      

      while it is desired:

      Value 'PT24H' is not comparable with range '[ duration( "P1Y2M" ) .. duration( "P1Y3M" ) ]'
      

      Attachments

        Activity

          People

            mmortari@redhat.com Matteo Mortari
            mmortari@redhat.com Matteo Mortari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: