Consider writing a DRL function that does the test and call it in an inline eval().<br>-W<br><br><div class="gmail_quote">On 15 February 2012 18:26, shawn <span dir="ltr">&lt;<a href="mailto:youngxiao121@hotmail.com">youngxiao121@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I meet a problem to find an element in an array.<br>
First, I have a 2 dimensional array and a 1 dimensional array.<br>
I need to compare whether the element in 2 dimensional array is as same as 1<br>
dimensional array.<br>
How to solve it?<br>
Like:<br>
In Java - int [][] A; int [] B;<br>
how to iterate array A and array B to find which element is the same in<br>
Drool?<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rule-with-array-tp3747680p3747680.html" target="_blank">http://drools.46999.n3.nabble.com/rule-with-array-tp3747680p3747680.html</a><br>
Sent from the Drools: User forum 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>
</blockquote></div><br>