public static class Item
{
private String CustomerId;
private String Item;
}
public static class Data
{
public ArrayList<Item> items = new ArrayList<Item>();
public ArrayList<Item> GetData()
{Item item1 = new Item();
// some code
from database
item1.CustomerId=rs.getString("CustomerId");
item1.Price=rs.getString("item");
items.add(item);
return item1
}
1.how to write rule how to find customer of a perticular Item
2. what i have written
$D:Data();
$I:Item();
$R:Item(item =="I1" )from $D.GetData() ;
then
System.out.println("hello");
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/working-with-aray-lis...
Sent from the Drools - User mailing list archive at
Nabble.com.