[rules-users] Extended rule doesn't have reference to variable created in super rule
arul.prashanth at gmail.com
arul.prashanth at gmail.com
Thu Feb 28 19:49:13 EST 2013
I have the below rules written but $xyz isn't available or visible in Rule 2.
Is this the way extends keyword works?
rule "test 1"
when
$xyz : XYZ(value == 0);
then
// do somethings
rule "test 2" extends "test 1"
when
eval($xyz.reference == 1)
then
// do something.
Exception:
Error: unable to resolve method using strict-mode: java.lang.Object.$xyz()
--
View this message in context: http://drools.46999.n3.nabble.com/Extended-rule-doesn-t-have-reference-to-variable-created-in-super-rule-tp4022647.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list