[rules-users] "extends" in rules
Edson Tirelli
tirelli at post.com
Tue Sep 22 11:14:02 EDT 2009
This is now fixed and committed to trunk:
https://jira.jboss.org/jira/browse/JBRULES-2282
Thanks for reporting.
Edson
2009/9/15 Matt Wixson <mwixson at ceclabs.com>
> Hello,
>
> I am encountering the same problem described in the previous posting but
> did not see a response. Is there a workaround or fix for this issue?
>
> The error is: "Unable to find declaration in list while generating the
> consequence invoker" when any variable from the parent is used in the
> child rule's Consequence.
>
> Thanks,
> Matt
>
> > On Aug 20, 2009, at 8:30 PM, Chandana Pingle
> > <chandana.pingle at intunity.com.au
> > > wrote:
> >
> >> Hi,
> >>
> >> I found an example on using "extends" to extend a rule from another
> >> rule.
> >> Using extends would only include the WHEN side of the rule.
> >>
> >> I want to use the variable defined in the parent rule in sub rule
> >> ,something like below example,how do i do that?
> >>
> >> rule A
> >> when
> >> $a:String( )
> >> eval($a=="abc")
> >> then
> >> do something
> >> end
> >>
> >> rule B extends A
> >> when
> >> $b:String( )
> >> $c:SomeClass()
> >> then
> >> $c.someMethod($a,$b) //i am not able to use $a here
> >> end
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090922/984cf3b6/attachment.html
More information about the rules-users
mailing list