[rules-users] need to manipulate ArrayList in rules Reg:

wasim.khan318 khanwasim07 at yahoo.co.in
Wed Dec 29 01:00:30 EST 2010


fom same senario i am writing code 
public static class Item
	{
private String CustomerId;
private String Price ;
}

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("Price");
		   items.add(item);
return item1
}

i want to check the customer and find its price for some rule 
my rule 

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/need-to-manipulate-ArrayList-in-rules-Reg-tp2150864p2161266.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list