]
Michael Anstis moved GUVNOR-2499 to DROOLS-1808:
------------------------------------------------
Project: Drools (was: Guvnor)
Key: DROOLS-1808 (was: GUVNOR-2499)
Workflow: GIT Pull Request workflow (was: classic default workflow)
Component/s: Data Model Oracle
Guided Decision Table Editor
Guided Rule Editor
Guided Template Editor
(was: Data Model Oracle)
(was: Guided Decision Table)
(was: Guided Rule Editor)
(was: Guided Rule Templates)
Affects Version/s: 6.3.0.Final
(was: drools_6.3.0.Final)
Inherited Rules' LHS variables in sub-rules KIE WORKBENCH 6.3.0
---------------------------------------------------------------
Key: DROOLS-1808
URL:
https://issues.jboss.org/browse/DROOLS-1808
Project: Drools
Issue Type: Enhancement
Components: Data Model Oracle, Guided Decision Table Editor, Guided Rule Editor,
Guided Template Editor
Affects Versions: 6.3.0.Final
Reporter: Marius Lazar
Priority: Minor
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.
{code:java}
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
{code}
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".