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

Improve error message for Msg.EXPRESSION_IS_RANGE_BUT_VALUE_IS_NOT_COMPARABLE

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: dmn engine
    • Labels:
      None
    • Sprint:
      2018 Week 19-22
    • Docs QE Status:
      NEW
    • QE Status:
      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" ) ]'
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tari_manga Matteo Mortari
                Reporter:
                tari_manga Matteo Mortari
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: