[rules-users] Abstracting Rules using extends

laune wolfgang.laun at gmail.com
Sat Apr 6 02:57:43 EDT 2013


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.


More information about the rules-users mailing list