You can't do any sort of constructor calls in the condition section.
i'm not sure if you're asking what goes in the ???? spot, but,
$list: ArrayList() from collect(Product(id == @{id}, ...conditions...))
perhaps?
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Dynamic-generated-lis...
Sent from the Drools - User mailing list archive at
Nabble.com.