-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
User Experience
-
NEW
-
NEW
I found that when I have 2 rules, second one inheriting from the first one in KIE Workbench 6.3.0, I can't use in the second rule the variable declared in the first rule.
rule "rule1" dialect "java" when patientSheet : Sheet( RE > 0 && HER2 < 0 && ( KIE67 > 14 || RP < 20 || grad == 3 )) then end rule "rule2" extends "rule1" dialect "java" when Sheet( RP >= 50 && RE >= 50 && tumorDimension <= 2 && ( pN == "pN0" || pN == "pN1mic" )) then patientSheet.setTreatment( "Therapy1" ); end
In the example above, I can't refer to the "patientSheet" declared in the rule that I extend. Also, on the RHS of the second rule I have to write free DRL to set a property of "patientSheet".