Any order has to come from attributes in your facts and must be ascertained by constraints. With these two patterns and two ArrayList objects the rule fires with A1/A1, A1/A2, A2/A1, A2/A2.<br>-W<br><br><div class="gmail_quote">
2010/12/8 Robert Miyashiro <span dir="ltr">&lt;<a href="mailto:robert@mercedsystems.com">robert@mercedsystems.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Let’s say there’s a rule with multiple bindings of the same type evaluated in a stateless session.  For example:<br>
<br>
rule<br>
when<br>
    $list1 : ArrayList()<br>
    $list2 : ArrayList()<br>
then<br>
    ...<br>
end<br>
<br>
Now, I have 2 ArrayList objects to insert into the session, A1 and A2.  How can I make sure that A1 gets bound to $list1, and A2 gets bound to $list2?  Obviously, I can’t just insert A1 first followed by A2 and expect that to work.  Is there some kind of evaluation mode or setting that will make Drools pay attention to the order in which objects are inserted into the session?<br>

<br>
</span></font>
</div>


<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>
<br></blockquote></div><br>