I tried to reproduce the problem with no success, we'd need to know the
Vehicles and Vehicle classes,
as well as the actual objects you are feeding into the session.
I am also a bit skeptic about the update on the $vehicles master
object.. As Wolfgang already pointed
out, that is very likely to cause loops unless you have additional
conditions to prevent it.
Eventually, I'd need to know if and how the "some update" lines change
the object(s)... for example, do you
modify any attribute involved in equals/hashkey computation?
I confirm, instead, that the compiler silently accepts rules extending
other non-existing / unreachable rules,
and that is a very dangerous bug
Best
Davide
On 04/05/2013 01:58 PM, Arul Prashanth wrote:
David, below are the content of the DRL's and have attached the
full error
trace herewith.
error.txt <
http://drools.46999.n3.nabble.com/file/n4023225/error.txt>
*Base DRL*
/package com.poc.test;
declare Test1
code : String;
end
ruleflow-group "FLOW1"
rule "INITIALIZE|test"
salience 999999
when
then
insert(new Test1());
end
rule "BASE|5.1"
enabled false
dialect "java"
when
$test : Test1();
$vehicles : Vehicles();
$vehicle : Vehicle() from $vehicles.Vehicle;
then
// do nothing, extending rule to implement
end/
*Custom DRL*
/
package com.poc.test;
ruleflow-group "FLOW1"
rule "TX|5.1" extends "BASE|5.1"
dialect "mvel"
when //use base condition
then
// some update
update($vehicles);
end/
-----
- Prashanth
--
View this message in context:
http://drools.46999.n3.nabble.com/Abstracting-Rules-using-extends-tp40232...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users