Re: [rules-users] Need help with setFocus

2009-06-24 Thread new2drools
alore. Try to > write the LHS so that they fully express the condition for firing; use > groups only as a last resort. > > Hint: duplication of RHS code can be avoided by defining and calling > functions. > > -W > > > On Wed, Jun 24, 2009 at 4:42 AM, new2drools

[rules-users] Need help with setFocus

2009-06-23 Thread new2drools
Hi All, Need some help with understanding setFocus. I have the following use case: if (condition1) { if (condition2) { } else if (condition3) { } else if (condition 4) { } } if (condition5) { if (condition2) { } else if (condition3) { } else if (condition 4) {

[rules-users] Help with LHS part of the Rule

2009-06-20 Thread new2drools
I am using Drools 5. In the LHS part of a rule, is it possible to call a method, in a class instance (that has been inserted into the working memory) which expects two parameters, and returns a boolean? For example, how can I invoke the following method in LHS (in a DRL file) part of the rule?

Re: [rules-users] Help -- Conditional Logic in DRL

2009-06-16 Thread new2drools
Greg, Thanks much for your suggestion...I think this will help!! Should have thought of this approach, before posting... Thanks again! Greg Barton wrote: > > > Note to drools devs: I didn't put the original poster up to this. :) > > Globals should be considered immutable, so shouldn't be u