[rules-users] rule with array

Wolfgang Laun wolfgang.laun at gmail.com
Wed Feb 15 13:14:12 EST 2012


Consider writing a DRL function that does the test and call it in an inline
eval().
-W

On 15 February 2012 18:26, shawn <youngxiao121 at hotmail.com> wrote:

> Hi,
> I meet a problem to find an element in an array.
> First, I have a 2 dimensional array and a 1 dimensional array.
> I need to compare whether the element in 2 dimensional array is as same as
> 1
> dimensional array.
> How to solve it?
> Like:
> In Java - int [][] A; int [] B;
> how to iterate array A and array B to find which element is the same in
> Drool?
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rule-with-array-tp3747680p3747680.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120215/c1977968/attachment.html 


More information about the rules-users mailing list