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

Build fails with a message "_this cannot be resolved" during compiling a generated executable model

XMLWordPrintable

    • False
    • None
    • False
    • CR1
    • +
    • Hide
      $ unzip reproducer_thiscannotberesolved_1d.zip
      $ cd reproducer_thiscannotberesolved_1d
      $ ./run_mvn
      === plain drl ===
          :
          :
      ***** start
      The price is below the lower limit of the discount
      ***** end
          :
          :
      
      === executable model ===
          :
          :
      [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel (default-generateModel) on project reproducer_thiscannotberesolved_1d: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel failed: [com/example/reproducer/PA6/LambdaExtractorA6DD974ADC1CE36DF3AB11A399D39A58.java (21:759) : _this cannot be resolved] -> [Help 1]
          :
          :
      
      Show
      $ unzip reproducer_thiscannotberesolved_1d.zip $ cd reproducer_thiscannotberesolved_1d $ ./run_mvn === plain drl === : : ***** start The price is below the lower limit of the discount ***** end : : === executable model === : : [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel (default-generateModel) on project reproducer_thiscannotberesolved_1d: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel failed: [com/example/reproducer/PA6/LambdaExtractorA6DD974ADC1CE36DF3AB11A399D39A58.java (21:759) : _this cannot be resolved] -> [Help 1] : :
    • 2022 Week 29-31 (from Jul 18)

      Build of rules like (*1) fails with a message "_this cannot be resolved" like (*2) during compiling a generated executable model.

      (*1)

      rule "Rule 1"
          when
              Fact( price : price,
                    lowerLimitPrice : lowerLimitPrice,
                    $discountRate : 0.5,
                    lowerLimitPrice > price * $discountRate )
          then
              System.out.println("The price is below the lower limit of the discount");
      end
      

      (*2)

      [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel (default-generateModel) on project reproducer_thiscannotberesolved_1d: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel failed: [com/example/reproducer/PA6/LambdaExtractorA6DD974ADC1CE36DF3AB11A399D39A58.java (21:759) : _this cannot be resolved] -> [Help 1]
      

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

                Created:
                Updated:
                Resolved: