Thank you for the response djb.<div>Doing what you say, i will collect ALL instances of products with id &#39;A&#39;,&#39;B&#39;,&#39;C&#39;, instead i need a tuple of exactly one &#39;A&#39;, one &#39;B&#39; and one &#39;C&#39;. In my scenario, products may occur multiple times (that i forgot to say, my fault...).<br>
I investigated a bit and posted a response myself, probably found a bug or missing implementation.</div><div>Kind regards<br><div class="gmail_quote">2010/5/19 djb <span dir="ltr">&lt;<a href="mailto:dbrownell83@hotmail.com">dbrownell83@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
You can&#39;t do any sort of constructor calls in the condition section.<br>
i&#39;m not sure if you&#39;re asking what goes in the ???? spot, but,<br>
$list: ArrayList() from collect(Product(id == @{id}, ...conditions...))<br>
perhaps?<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Dynamic-generated-list-tp828787p829220.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Dynamic-generated-list-tp828787p829220.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br></div>