Re: [rules-users] Dynamic ValueRangeProvider

2013-09-12 Thread Geoffrey De Smet
Have you considered this alternative model? class VehicleType{} // PickupTruck, TractorTrailer, ... class Vehicle { // For example the PickupTruck with license plate 123 VehicleType vehicleType; String licensePlate; } class or enum FurnitureType{} // SmallChair, LargeSofa, ... class

Re: [rules-users] Dynamic ValueRangeProvider

2013-09-11 Thread Andrew Varner
Here's the problem I am trying to solve. My users provide me a a list of configurations for what a truck can hold. For example: PickupTruck: 1xLargeSofa 3xSmallChair PickupTruck: 1xLargeSofa 1xSmallSofa 1xSmallChair PickupTruck: 5xSmallChair TractorTrailer: 2xLargeSofa 4xSmallChair … The

Re: [rules-users] Dynamic ValueRangeProvider

2013-09-10 Thread Geoffrey De Smet
On 09-09-13 16:13, Andrew Varner wrote: Optaplanners, I'm looking to add some dynamic goodness to ValueRangeProvider. The only way I see to specify a ValueRangeProvider is via annotation. I'd like to be able to generate the id and Collection of candidate values dynamically. Is it

[rules-users] Dynamic ValueRangeProvider

2013-09-09 Thread Andrew Varner
Optaplanners, I'm looking to add some dynamic goodness to ValueRangeProvider. The only way I see to specify a ValueRangeProvider is via annotation. I'd like to be able to generate the id and Collection of candidate values dynamically. Is it possible to generate the ValueRangeProvider data