Re: [drools-user] Question on working memory and its working

2007-01-01 Thread Sudha
engine to act on > the basis of those modifications, you should call the modify() method. > That > seems to be true in the situation you're describing, from what I skim-read > of your question. > > On 12/30/06, Sudha <[EMAIL PROTECTED]> wrote: >> >> >&g

[drools-user] Question on working memory and its working

2006-12-30 Thread Sudha
Hi, I have two objects in my domain. Customer and Item objects. Each item has a unique item code. The goal is to group item objects based on the item code. So, as soon as I receive an item from a customer, I run my rule to find out 2 things: 1) If the customer already has an item with the same it

Re: [drools-user] Help on writing XML rules

2006-12-25 Thread Sudha
Hi Michael, Thanks for this wonderful explanation. It has cleared my doubts. With this understanding, I can now try out some examples. I wish such explanation becomes a part of the main stream documentation. It will help many beginners like me. Thanks, Sudha -- View this message in context

[drools-user] Help on writing XML rules

2006-12-25 Thread Sudha
? 4. Also, in my second condition can I specify some more CEs like $order: Order( (customer == $cust , (totalAmount > 500 || numberoforders < 400) ) Thanks, Sudha -- View this message in context: http://www.nabble.com/Help-on-writing-XML-rules-tf2880224.html#a8048347 Sent fro

[drools-user] Can I use Or and And conditions

2006-12-05 Thread Sudha
like (item.quantity < 1000 && item.duedateReached()) || ( item.quantity > 1000 && item.pendingdays()>10) Is this possible in the version 3.0? If not, is there a build that would provide me this? Thanks, Sudha -- View this message in context: http://www.nabble.com/Can-I-use-Or-and

[drools-user] Can Java Conditions have multiple contraints

2006-12-04 Thread Sudha
ify a single that has multiple constrains using like OR, NOT etc. Thanks, Sudha -- View this message in context: http://www.nabble.com/Can-Java-Conditions-have-multiple-contraints-tf2750235.html#a7673222 Sent from the drools - user mailing list archive at Nabbl

[drools-user] How to accumulate facts

2006-12-03 Thread Sudha
in a List. Assuming that my group object fires this rule at some particular time, following is my question: 1. Would the rule apply to all Item objects in WM. 2. How can I accumulate these objects in a List? Thanks, Sudha -- View this message in context: http://www.nabble.com/How-to-accum