Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.43.1.Final
    • Fix Version/s: None
    • Component/s: executable model
    • Labels:
      None
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      as per https://docs.jboss.org/drools/release/7.43.1.Final/drools-docs/html_single/index.html#_date_literal_in_constraints  the given the rule:

       

      rule "will execute per each Measurement having ID color"
      no-loop
      when
       Measurement( date > "01-May-1990", $colorVal : val )
      then
       controlSet.add($colorVal);
      end

      should work.

      Instead it throws:

      [...]/target/generated-sources/drools-model-compiler/main/java/rules/Rules54254744800a44aa8e98a0deb3d63bb0RuleMethods0.java:[26,159] method alphaIndexedBy in class org.drools.model.PatternDSL cannot be applied to given types;
      [ERROR] required: java.lang.Class<U>,org.drools.model.Index.ConstraintType,int,org.drools.model.functions.Function1<T,U>,U
      [ERROR] found: java.lang.Class<java.time.LocalDate>,org.drools.model.Index.ConstraintType,int,rules.P33.LambdaExtractor33FA9B82326DE87BF650FB57D8DB8143,java.lang.String
      [ERROR] reason: inference variable U has incompatible bounds
      [ERROR] equality constraints: java.time.LocalDate
      [ERROR] lower bounds: java.lang.String

       

       

       

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lucamolteni Luca Molteni
                Reporter:
                cchiru Ciprian Chiru
              • Votes:
                6 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: