<br><font size=2 face="sans-serif">There may be a better way but I did
it using a function as below:</font>
<br>
<br><font size=2 color=#a00000 face="Courier New"><b>function</b></font><font size=2 face="Courier New">
</font><font size=2 color=#a00000 face="Courier New"><b>void</b></font><font size=2 face="Courier New">
insertArray(WorkingMemory workingMemory, Object[] array)</font>
<br><font size=2 face="Courier New">{</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#a00000 face="Courier New"><b>for</b></font><font size=2 face="Courier New">
(</font><font size=2 color=#a00000 face="Courier New"><b>int</b></font><font size=2 face="Courier New">
i=0;i&lt;array.length;i++)</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; {</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; workingMemory.</font><font size=2 color=#a00000 face="Courier New"><b>insert</b></font><font size=2 face="Courier New">(array[i]);</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#a00000 face="Courier New"><b>return</b></font><font size=2 face="Courier New">;</font>
<br><font size=2 face="Courier New">}</font>
<br>
<br><font size=2 face="sans-serif">...</font>
<br>
<br><font size=2 color=#a00000 face="Courier New"><b>rule</b></font><font size=2 face="Courier New">
</font><font size=2 color=#008000 face="Courier New">&quot;StarCoApplicants&quot;</font><font size=2 face="Courier New">
</font><font size=2 color=#a00000 face="Courier New"><b>ruleflow-group</b></font><font size=2 face="Courier New">
</font><font size=2 color=#008000 face="Courier New">&quot;STAR&quot;</font>
<br><font size=2 color=#a00000 face="Courier New"><b>dialect</b></font><font size=2 face="Courier New">
</font><font size=2 color=#008000 face="Courier New">&quot;mvel&quot;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#a00000 face="Courier New"><b>when</b></font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; $creditContract : CreditContract ()</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#a00000 face="Courier New"><b>then</b></font><font size=2 face="Courier New">
</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; insertArray(drools.workingMemory,$creditContract.coApplicantArray);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=2 color=#a00000 face="Courier New"><b>end</b></font>
<br>
<br>
<br><font size=2 face="sans-serif">Kent Symanzik<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>techy &lt;techluver007@gmail.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: rules-users-bounces@lists.jboss.org</font>
<p><font size=1 face="sans-serif">02/09/2009 10:15 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Rules Users List &lt;rules-users@lists.jboss.org&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">rules-users@lists.jboss.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [rules-users] Inserting collection
of facts in rule Consequence</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2><br>
I would appreciate If someone can clarify this.<br>
<br>
Thanks in advance<br>
<br>
<br>
techy wrote:<br>
&gt; <br>
&gt; Hello,<br>
&gt; <br>
&gt; Is there way to insert all facts from collection (similar to<br>
&gt; session.execute(collection)) in the rule consequence ? <br>
&gt; <br>
&gt; Thanks!<br>
&gt; <br>
<br>
-- <br>
View this message in context: </font></tt><a href="http://www.nabble.com/Inserting-collection-of-facts-in-rule-Consequence-tp21814308p21914860.html"><tt><font size=2>http://www.nabble.com/Inserting-collection-of-facts-in-rule-Consequence-tp21814308p21914860.html<br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users<br>
</font></tt><font size=2 face="sans-serif"> &nbsp;</font></a></a>
<br>