[rules-users] Unable to compile JBoss Rules example code - HelloWorldExample.java

2007-02-19 Thread venkatesh devalapura nagabhushana
Hi, I am unable to compile the example code for JBoss, could some body help me out how to go about compiling the example code ? Is there a document that explains the steps for compiling the example source code ? Please let me know. Following is the error I am getting while trying to compile

[rules-users] Handling ArrayList objects in rule conditions

2007-02-19 Thread Diwakar
I am a beginner. I have an ArrayList object - Say BoxList Object containing 10 Box objects . I need to check if the length of the bos is 10cm on each box object. How do I write this as rule condition. Is there any way to write the rule for iterating the BoxList to check the length of each box

Re: [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[

2007-02-19 Thread Nagabhushanam B
hi I am facing a problem while deployed it in websphere community edition. My application is working fine when it is running in tomcat using jBoss Rules... but the same thing if I deployed in Webspehere then its throwing exception. i thought its because of antlr jar version mismatch , then i

[rules-users] Help Needed on garbage collection

2007-02-19 Thread shilpa.raghavendra
Hi, I need to know how garbage collection will happen in Drools. Because my system is taking too much time to execute the business logic. Please tell me how to rectify it? One more question I will generate the email content

Re: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Bill Zhang
Hi Steven, Yes I thought of that but our business user says this is unacceptable unless I can write a parser to automatically generate all these combinations. The example I use is quite simple. Our business user have quite complex logic expressions (imagin my example plus a lot of parenthesis

Re: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Bill Zhang
Hi Alex, Thank you for confirming this. Writing such a builder may take us a lot of time because our business user is used to free style Pascal-like authoring using quite complex logic. For example, IF ( ( (Person.Age 35 OR Person.Age 25) AND (Person.ZipCode =23546 or Person.ZipCode =

Re: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Edson Tirelli
Bill, The way of doing that is using connective constraints as explained by Steven previously: $a : Person(age 35 | 25, zipCode == 23546 | == 68590) This is a new feature that only works in 3.1M1 and later versions. []s Edson Bill Zhang wrote: Hi Steven, Yes I thought of

Re: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Edson Tirelli
Bill, Your statement bellow can be written in 3.1M1 as: rule ... when $person : ( Person( age 35 | 25, zipCode == 23546 | == 68570, $lop: lastOrderPrice, $ton: totalOrderNumber,

Re: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Edson Tirelli
Vlad, I think that for Bill's case, the object structure is flatten already (what is good for rules). Creating nested objects will actually make it more difficult to write the rules... Just my 0.02c []s Edson Olenin, Vladimir (MOH) wrote: I guess if you modify the business

Re: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Bill Zhang
Hi Vlad, Thank you for the help. Unfortunately I can not change the Object Model as these POJOs are not used only by myself. Bill Y. On 2/19/07, Olenin, Vladimir (MOH) [EMAIL PROTECTED] wrote: I guess if you modify the business objects a bit (in quite weird way - I think it would be rather a

Re: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Edson Tirelli
Bill, The new version works fine with nested conditional elements and allow for any level of nesting. You simply must be very careful with OR as the semantics of OR in a rules engine are not exactly the same as most people are used to in imperative programming. Also, the syntax you

Re: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Mark Proctor
'and' is not needed at top level, it is implicitely assumed that all patters are under an 'and' CE. Mark Bill Zhang wrote: Edson, Thanks for the reply. The rule you authored worked fine on my new Drools build from SVN. However, I did notice that the following pattern matching is not working:

Re: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Bill Zhang
Edson and Mark, Thank you for your help. I have the complete rule expressed in PASCAL-like language in the following. Mark mentioned that and is not needed at top level but I am not sure what syntax I can use to express the top-level and in the following rule when the top-level and is used to

RE: [rules-users] Convert logic to DRL rules

2007-02-19 Thread Olenin, Vladimir (MOH)
To improve my understanding of DROOLS a bit, just a small follow up question. If the modification of the business domain model is correct and will result in the correct behavior, I wonder what kind of performance implications such modification will bring (to compare with 'flatten' model)? Would

Re: [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[

2007-02-19 Thread Steven Williams
you also need stringtemplate-2.3b6.jar Steve On 2/19/07, Nagabhushanam B [EMAIL PROTECTED] wrote: hi I am facing a problem while deployed it in websphere community edition. My application is working fine when it is running in tomcat using jBoss Rules... but the same thing if I deployed in

Re: [rules-users] conditional insert of 'exist' or 'not' keywords in decision table s

2007-02-19 Thread Steven Williams
Hi Vlad, There is a very basic wiki page on it (http://wiki.jboss.org/wiki/Wiki.jsp?page=DecisionTableTemplates ). In terms of the functionality you mention you have your data having knowledge of the rule templates whereas the current implementation is such that the data has no knowledge of the

RE: [rules-users] Using JBoss Rules for implementing sparse lookuptables

2007-02-19 Thread Ho, Alan
Drools 3.1 has the a new conditional element called from. You can do queries on your database (hibernate) or any other data structure: e.g. $r : Restaurant( $postCode ) from hbSession.getNamedQuery( some query ).setProperties( [ key1 : value2, key2 : value ] ).list() The rule per row doesn't

Re: [rules-users] Using JBoss Rules for implementing sparse lookuptables

2007-02-19 Thread Alexander Varakin
Alan, Thanks for your reply! The main reason I was considering creating a rule per row is because it allows flexible matching: it will allow matching records with different level of details. I was also thinking of asserting rows of my lookup table as facts, would that work? What kind of

Re: [rules-users] Need Help: Errors while running FibonacciExample

2007-02-19 Thread venkatesh devalapura nagabhushana
Hi Marcus, Thanks for the response, I have not tried with Sun JDK, let me try it out and keep you posted. Thanks, Venkatesh On Mon, 2007-02-19 at 14:24 +0100, Marcus Ilgner wrote: Hi Venkatesh, On 2/19/07, venkatesh devalapura nagabhushana [EMAIL PROTECTED] wrote: Hi,

[rules-users] Need Help for jbossruleseclipse Configuration

2007-02-19 Thread Niloy Debnath
hi, i'm doing a project using jbossrules eclipse on fedora core 4 platform.i've tried to configure jboss eclipse.the steps i've followed is written below, 1.install j2sdk-1_4_2_13-linux-i586-rpm.bin and set the classpath 2.extract jbossrules-3.0.5-bin-withdeps.zip 3.extract

Re: [rules-users] Need Help: Errors while running FibonacciExample

2007-02-19 Thread venkatesh devalapura nagabhushana
Hi, I shifted to Sun JDK. Now, I am seeing a new problem while trying to run FibonacciExample: java org.drools.examples.FibonacciExample Exception in thread main java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment at