-
Bug
-
Resolution: Done
-
Major
-
7.54.0.Final
-
None
-
2021 Week 22-24 (from May 31)
-
2
-
Undefined
-
NEW
-
NEW
When modify block exists in a named consequence,
rule R1 when $a: Cheese ( type == "stilton" ) if ( price < 10 ) break[t1] $b: Cheese ( type == "cheddar" ) then results.add( $a.getType() ); then[t1] modify( $a ) { setPrice(15) }; end
BitMask is not generated:
public enum LambdaConsequenceF831478DB95C880D00DB51C33332CA20 implements org.drools.model.functions.Block2<org.drools.model.Drools, org.drools.modelcompiler.domain.Cheese>, org.drools.model.functions.HashedExpression { INSTANCE; public static final String EXPRESSION_HASH = "ACF00A35EB5323D8A7CCCA2BFF74DE72"; public java.lang.String getExpressionHash() { return EXPRESSION_HASH; } @Override() public void execute(org.drools.model.Drools drools, org.drools.modelcompiler.domain.Cheese $a) throws java.lang.Exception { { { ($a).setPrice(15); } drools.update($a, mask_$a); } } }
So fails with
mask_$a cannot be resolved to a variable
- is incorporated by
-
DROOLS-5823 executable-model test failure in test-compiler-integration NamedConsequencesTest
- Closed
- is related to
-
DROOLS-6388 BitMask creation when named consequences modify different properties
- Open
-
DROOLS-5729 Reorganize drools unit tests
- Coding In Progress