<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"><<a href="mailto:mwixson@ceclabs.com">mwixson@ceclabs.com</a>></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: "Unable to find declaration in list while generating the<br>
consequence invoker" when any variable from the parent is used in the<br>
child rule's Consequence.<br>
<br>
Thanks,<br>
Matt<br>
<div class="im"><br>
> On Aug 20, 2009, at 8:30 PM, Chandana Pingle<br>
</div>> <chandana.pingle at <a href="http://intunity.com.au" target="_blank">intunity.com.au</a><br>
<div class="im">> > wrote:<br>
><br>
>> Hi,<br>
>><br>
>> I found an example on using "extends" to extend a rule from another<br>
>> rule.<br>
>> Using extends would only include the WHEN side of the rule.<br>
>><br>
>> I want to use the variable defined in the parent rule in sub rule<br>
>> ,something like below example,how do i do that?<br>
>><br>
>> rule A<br>
>> when<br>
>> $a:String( )<br>
>> eval($a=="abc")<br>
>> then<br>
>> do something<br>
>> end<br>
>><br>
>> rule B extends A<br>
>> when<br>
>> $b:String( )<br>
>> $c:SomeClass()<br>
>> then<br>
>> $c.someMethod($a,$b) //i am not able to use $a here<br>
>> 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>