Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.42.0.Final
    • Fix Version/s: None
    • Component/s: executable model
    • Labels:
      None
    • Sprint:
      2020 Week 34-36 (from Aug 17), 2020 Week 37-39 (from Sep 7)
    • Steps to Reproduce:
      Hide

      Please compile the rule above.

      Show
      Please compile the rule above.
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Given the sample rule below:

      import java.util.*;
      
      global java.util.Set controlSet;
      
      rule "will execute per each Measurement having ID color"
      no-loop
      when
       Measurement( id == "color", $colorVal : val )
       String() from Optional.of($colorVal).orElse("blah")
      then
       controlSet.add($colorVal);
      end

       

      Compiling the resulting model fails with:

      .../target/generated-sources/drools-model-compiler/main/java/rules/Rules79f20b1c9ba841128eaf4b2dbb336819RuleMethods0.java:[24,129] cannot find symbol
      [ERROR] symbol: variable $colorVal
      [ERROR] location: class rules.Rules79f20b1c9ba841128eaf4b2dbb336819RuleMethods0

      Can be reproduced with 7.43.0-SNAPSHOT

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lucamolteni Luca Molteni
                Reporter:
                cchiru Ciprian Chiru
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: