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

Working with Long field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.28.0.Final
    • core engine
    • None
    • 2019 Week 44-46 (from Okt 28)
    • NEW
    • NEW

    Description

      Setting long field value in THEN:
      This are 3 different problems:
      1) package as kjar with 'mvn clean install' result in "Error: unable to resolve method using strict-mode: org.drools.core.spi.Activation.setValue(java.lang.Integer)"
      RESULT:
      IntInRuleJava.drl - FAIL
      IntInRuleMvel.drl - FAIL
      LongInRuleJava.drl - OK
      LongInRuleMvel.drl - FAIL
      LongError.gdst - FAIL

      2) package as kjar with 'mvn clean install -Ddrools.dialect.mvel.strict=false', same error on different files:
      IntInRuleJava.drl - FAIL
      IntInRuleMvel.drl - OK
      LongInRuleJava.drl - OK
      LongInRuleMvel.drl - OK
      LongError.gdst - OK

      3) with 'mvn clean install -DgenerateModel=YES' it result in 'incompatible types: int cannot be converted to java.lang.Long', setting strict false have no influence on result
      IntInRuleJava.drl - FAIL
      IntInRuleMvel.drl - FAIL
      LongInRuleJava.drl - OK
      LongInRuleMvel.drl - OK
      LongError.gdst - FAIL

      Setting 'drools.dialect.mvel.strict' in kmodule.xml doesn't work.

      Example project attached.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            pavel.tavoda Pavel Tavoda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: