<br>   This is now fixed and committed to trunk:<br><br><a href="https://jira.jboss.org/jira/browse/JBRULES-2282">https://jira.jboss.org/jira/browse/JBRULES-2282</a><br><br>   Thanks for reporting.<br><br>   Edson<br><br><div class="gmail_quote">
2009/9/15 Matt Wixson <span dir="ltr">&lt;<a href="mailto:mwixson@ceclabs.com">mwixson@ceclabs.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I am encountering the same problem described in the previous posting but<br>
did not see a response.   Is there a workaround or fix for this issue?<br>
<br>
The error is: &quot;Unable to find declaration in list while generating the<br>
consequence invoker&quot; when any variable from the parent is used in the<br>
child rule&#39;s Consequence.<br>
<br>
Thanks,<br>
Matt<br>
<div class="im"><br>
&gt; On Aug 20, 2009, at 8:30 PM, Chandana Pingle<br>
</div>&gt; &lt;chandana.pingle at <a href="http://intunity.com.au" target="_blank">intunity.com.au</a><br>
<div class="im">&gt;  &gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I found an example on using &quot;extends&quot; to extend a rule from another<br>
&gt;&gt; rule.<br>
&gt;&gt; Using extends would only include the WHEN side of the rule.<br>
&gt;&gt;<br>
&gt;&gt; I want to use the variable defined in the parent rule in sub rule<br>
&gt;&gt; ,something like below example,how do i do that?<br>
&gt;&gt;<br>
&gt;&gt; rule A<br>
&gt;&gt; when<br>
&gt;&gt;    $a:String( )<br>
&gt;&gt;    eval($a==&quot;abc&quot;)<br>
&gt;&gt; then<br>
&gt;&gt;    do something<br>
&gt;&gt; end<br>
&gt;&gt;<br>
&gt;&gt; rule B extends A<br>
&gt;&gt; when<br>
&gt;&gt;   $b:String( )<br>
&gt;&gt;   $c:SomeClass()<br>
&gt;&gt; then<br>
&gt;&gt;   $c.someMethod($a,$b) //i am not able to use $a here<br>
&gt;&gt;   end<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>