Using a drl-defined class for defining the constants is all right, but these
values have to be used while creating a Vehicle object. People maintaining
the rules may not be the ones responsible for the code creating the facts,
and that's where these values will have to be used for setting the
Vehicle.type property.

If the order of Vehicles in a collection is relevant, you should not base
reasoning on their sequence in some List<>. Use a property sequenceNumber.
And reconsider not using Vehicles and "from".







--
View this message in context: 
http://drools.46999.n3.nabble.com/Abstracting-Rules-using-extends-tp4023217p4023227.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to