[rules-users] Issue with Rule X1 extends X2

Wolfgang Laun wolfgang.laun at gmail.com
Fri Mar 29 01:11:48 EDT 2013


It works for me.

Make sure to test for errors after compilation ( kBuilder.hasErrors() ).

The code you've shown for the 2nd scenario  is incomplete, so no comment.

-W

On 29/03/2013, arul.prashanth at gmail.com <arul.prashanth at gmail.com> wrote:
> When two rules recide within a same drl extends works as expected.
>
> rule "Base_Rule|1.1.2"
> enabled false
> when
>     	$bdy : BDY()
>     	Vehicles()
>     then
>         System.out.println(" >>>> 222 "+$bdy);
> end
>
> rule "TX_Rule|1.1.2" extends "Base_Rule|1.1.2"
> 	when
>     then
>         System.out.println(" >>>> TX 222 "+$bdy);
> end
>
> When the super rule recides in a different DRL and child rule in a
> different
> DRL the parent rule is not fired
>
> rule "TX_Rule|1.1.1" extends "Base_Rule|1.1.0"
> 	when
> 		BDY();
>     then
>         System.out.println(" >>>> TX 111 "+$bdy);
> end
>
> Any thoughts ??
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Issue-with-Rule-X1-extends-X2-tp4023114.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list