Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1959

Executable model build fails when setting negative BigDecimal literal value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.13.3.GA
    • 7.13.2.GA
    • BRE
    • False
    • None
    • False
    • qa-ack
    • CR1
    • +
    • 2023 Week 03-05 (from Jan 16), 2023 Week 06-08 (from Feb 6)

    Description

      When a negative value is set to a BigDecimal type property in RHS like the following,

        when
              $fact : Fact( ... )
        then
              modify($fact){
                 bd = -1
              }
      end
      

      executable model build fails with the ERROR something like:

      [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00019:generateModel (default-generateModel) on project reproducer_bigdecimal_literal: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00019:generateModel failed: [com/example/reproducer/P51/LambdaConsequence51FE31BED8B91C756F6F900EB097A03B.java (28:1147) : The method setBd(BigDecimal) in the type Fact is not applicable for the arguments (int)] -> [Help 1]
      

      If a value is positive, it works.

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              rhn-support-hmiura Hiroko Miura
              Paolo Bizzarri Paolo Bizzarri
              Paolo Bizzarri Paolo Bizzarri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: