[rules-users] Dynamic ValueRangeProvider
Andrew Varner
drew.varner at me.com
Mon Sep 9 10:13:34 EDT 2013
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 outside of an annotation?
For example:
public class MyDataSource {
public Collection getValues(String id) {
…
return values;
}
}
Thanks,
Drew
More information about the rules-users
mailing list