<HTML>
<HEAD>
<TITLE>Multiple bindings with the same type</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Let&#8217;s say there&#8217;s a rule with multiple bindings of the same type evaluated in a stateless session. &nbsp;For example:<BR>
<BR>
rule<BR>
when<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$list1 : ArrayList()<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$list2 : ArrayList()<BR>
then<BR>
&nbsp;&nbsp;&nbsp;&nbsp;...<BR>
end<BR>
<BR>
Now, I have 2 ArrayList objects to insert into the session, A1 and A2. &nbsp;How can I make sure that A1 gets bound to $list1, and A2 gets bound to $list2? &nbsp;Obviously, I can&#8217;t just insert A1 first followed by A2 and expect that to work. &nbsp;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>
</BODY>
</HTML>