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

drools executable-model fails with a bind variable to a calculation result of int and BigDecimal

XMLWordPrintable

    • False
    • None
    • False
    • Release Notes
    • +
    • Hide
      $ unzip reproducer_bd_expr_2a.zip
      $ cd reproducer_bd_expr_2a
      $ ./run_mvn 
      === generateModel=NO ===
         :
         :
      ***** start
      ***** Rule 1: $fact=com.example.reproducer.Fact@79f227a9{intValue=100000, rate=80}, $value=80000
      ***** end
         :
         :
      
      === generateModel=YES ===
         :
         :
      [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00024:generateModel (default-generateModel) on project reproducer_bd_expr_2a: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00024:generateModel failed: [com/example/reproducer/PE5/LambdaExtractorE50F7D1A38252941ACF2EF1DDFB13768.java (21:756) : The operator * is undefined for the argument type(s) int, BigDecimal] -> [Help 1]
         :
         :
      

      Like above, build fails only in executable model.

      Show
      $ unzip reproducer_bd_expr_2a.zip $ cd reproducer_bd_expr_2a $ ./run_mvn === generateModel=NO === : : ***** start ***** Rule 1: $fact=com.example.reproducer.Fact@79f227a9{intValue=100000, rate=80}, $value=80000 ***** end : : === generateModel=YES === : : [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00024:generateModel (default-generateModel) on project reproducer_bd_expr_2a: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00024:generateModel failed: [com/example/reproducer/PE5/LambdaExtractorE50F7D1A38252941ACF2EF1DDFB13768.java (21:756) : The operator * is undefined for the argument type(s) int, BigDecimal] -> [Help 1] : : Like above, build fails only in executable model.
    • 2023 Week 36-38 (from Sep 4)

      Rule like this

          when
              $fact : Fact( $value : (100000 * rate / 100) )
      

      fails with

      generateModel failed: [com/example/reproducer/PD5/LambdaExtractorD5715D1A25E76BFE57B274B9C0E75A0E.java (21:756) : The operator * is undefined for the argument type(s) int, BigDecimal
      

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-myoshida Masato Yoshida
              Daniel Rosa Daniel Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: