Re: [rules-users] Some serious problems while authoring rules

2007-07-19 Thread Mark Proctor
you have two patterns, there for you need two objects - it's a cross product. Try using an eval instead of a predicate, then you can bind all your variables on the first line, and eval them on the next line. Until you move to 4.0 there is no clean way to do this. Mark Natraj Gudla wrote: Yes,

Re: [rules-users] Some serious problems while authoring rules

2007-07-19 Thread Natraj Gudla
Yes, infact i expected both the conditions to work against the same object in the working memory? Is it not possible? For this scenario, drools has not been allowing me to do a comparison amongst two attributes of the same class. When i do so, it complains of not being to resolve the variable. Som

Re: [rules-users] Some serious problems while authoring rules

2007-07-19 Thread Mark Proctor
You do understand that what you have there is a cross product, you'll need two objects to match against that - were you expecting this to wokr against and on the same single EMIAgainstProperty object? Mark Natraj Gudla wrote: I am facing some serious blocking issues while writing few rules. In

Re: [rules-users] Some serious problems while authoring rules

2007-07-19 Thread Natraj Gudla
Hi Starke, Please find the same attached. Thanks Natraj On 7/19/07, Dr. Gernot Starke <[EMAIL PROTECTED]> wrote: Hi, please list your EMIAgainsProperty class... Gernot > I am facing some serious blocking issues while writing few rules. In the > rule below, a1, a2 are Double objects. When

Re: [rules-users] Some serious problems while authoring rules

2007-07-19 Thread Dr. Gernot Starke
Hi, please list your EMIAgainsProperty class... Gernot > I am facing some serious blocking issues while writing few rules. In the > rule below, a1, a2 are Double objects. When i have the first statement in > the rule " EMIAgainstProperty( obj : a1 )", the rule does not firewhen > i > comment

[rules-users] Some serious problems while authoring rules

2007-07-18 Thread Natraj Gudla
I am facing some serious blocking issues while writing few rules. In the rule below, a1, a2 are Double objects. When i have the first statement in the rule " EMIAgainstProperty( obj : a1 )", the rule does not firewhen i comment and re phrase the second line as emi : EMIAgainstProperty( a2 >= (