Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 7.28.0.Final
    • Fix Version/s: None
    • Component/s: core engine
    • Labels:
      None
    • Sprint:
      2019 Week 44-46 (from Okt 28)
    • Docs QE Status:
      NEW
    • QE Status:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                pavel.tavoda Pavel Tavoda
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: