Re: [rules-users] Problems running brms

2007-07-27 Thread Aziz Boxwala
That solved the problem. Thanks. --Aziz Fernando Meyer <[EMAIL PROTECTED]> wrote: Aziz, It was a problem with our last build, please download the latest brms war from http://labs.jboss.com/drools/downloads Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB

[rules-users] Drools Puzzle #1: Ages of the sons

2007-07-27 Thread Ellen Zhao
Hallo all! I talked about running a periodic puzzle solving contest in the user mailing list to some people in the drools team. They have never done it before so did not know how this contest will come out. However, I was allowed to make the first try. If no body is interested, there won't be any

Re: [rules-users] Problems running brms

2007-07-27 Thread Fernando Meyer
Aziz, It was a problem with our last build, please download the latest brms war from http://labs.jboss.com/drools/downloads Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 27, 2007, at 6:17 PM, Aziz Boxwala wrote: I am having a problem running brms. I ca

[rules-users] Problems running brms

2007-07-27 Thread Aziz Boxwala
I am having a problem running brms. I cannot view any part of the web page except the mast head. I earlier had downloaded and tried out brms 4.0 MR3 and it appeared to work fine. I then downloaded a continuous build release and subsequently the 4.0.0 release. In both of these, I encountered the

[rules-users] (no subject)

2007-07-27 Thread Fernando Meyer
Hi everybody I just checked in new maven2 artifacts to maven repository, Now it counts with deployment metadata info and md5 + sha1 checksum. Regards. Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB ___ rules-users mailing li

[rules-users] Updated Maven2 artifacts

2007-07-27 Thread Fernando Meyer
Hi everybody I just checked in new maven2 artifacts to maven repository, Now it counts with deployment metadata info and md5 + sha1 checksum. Regards. Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB ___ rules-users mailing li

Re: [rules-users] Something going on with maven2 repo?

2007-07-27 Thread Eric Miles
Yup! All synced up now and my tests work today. The repo was in an odd state yesterday and didn't all have the necessary supporting elements for artifacts. How often is the repo updated? I would assume only after a release is cut? Thanks so much! Eric On Fri, 2007-07-27 at 14:53 -0300, Fer

Re: [rules-users] Something going on with maven2 repo?

2007-07-27 Thread Fernando Meyer
Hey Eric, It takes a few minutes to sync maven2 repository with subversion, please try again in a few minutes. Cheers Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 27, 2007, at 2:45 PM, Eric Miles wrote: I'm trying to attempt to upgrade to 4.0.0 GA ag

[rules-users] Something going on with maven2 repo?

2007-07-27 Thread Eric Miles
I'm trying to attempt to upgrade to 4.0.0 GA again and it looks like the org.drools:drools:4.0.0 artifact is missing on the server. However, unlike yesterday, the core and compiler artifacts now have poms and checksums (which I think was the issue yesterday). Is the release not fully available on

Re: [rules-users] adding process to an empty rule base

2007-07-27 Thread hypnosat7
If I do like this, it works : PackageBuilder builder = new PackageBuilder(); Reader drlReader = new InputStreamReader(getClass().getResourceAsStream("/emptyPackage.drl")); builder.addPackageFromDrl(drlReader); builder.addRuleFlow(ruleFlow); Package pkgRuleFlow = builder.getPackage(); ruleBase.add

Re: [rules-users] adding process to an empty rule base

2007-07-27 Thread hypnosat7
thanks, it works but now I have this : Caused by: java.lang.NullPointerException at org.drools.compiler.PackageBuilder.addRuleFlowsToPackage(PackageBuilder.java:469) at org.drools.compiler.PackageBuilder.getPackage(PackageBuilder.java:449) Kris Verlaenen wrote: > > This error

Re: [rules-users] adding process to an empty rule base

2007-07-27 Thread Kris Verlaenen
This error is caused by a mismatch between the version of the mvel library you are using and the version that is expected by drools. Drools 4.0.0 is expecting mvel14-1.2rc1.jar. Previous versions of drools are probably based on older versions of mvel. Might also be caused by having multiple ver

Re: [rules-users] adding process to an empty rule base

2007-07-27 Thread hypnosat7
I try this: ... InputStream stream = getClass().getResourceAsStream("/rules/demoRuleFlow.rfm"); Reader ruleFlowReader = new InputStreamReader(stream); ruleEngine.setRuleFlow(ruleFlowReader); .. PackageBuilder builder = new P

Re: [rules-users] NullPointerException in a simple test -- a Drools bug?

2007-07-27 Thread Christian Spurk
Hello Edson, thanks for your quick reply. Edson Tirelli wrote: Yes, looks like a bug. Can you please open a JIRA for it? Ok, I've filed a bug in JIRA here: http://jira.jboss.com/jira/browse/JBRULES-1034 I've set the priority to "Blocker" as this bug currently blocks our migration to Droo

Re: [rules-users] Accum question

2007-07-27 Thread Mike D
Thanks Edson. Yea, I typed it on the fly instead of cut/paste. I will try the inline eval. Your help is appreciated! Edson Tirelli-3 wrote: > >Sorry, it is not clear what you are trying to do. >There are a few clear mistakes in your rule: > > 1. You can't use the $totV variable insi

Re: [rules-users] NullPointerException in a simple test -- a Drools bug?

2007-07-27 Thread Edson Tirelli
Christian, Yes, looks like a bug. Can you please open a JIRA for it? Thank you, Edson 2007/7/27, Christian Spurk <[EMAIL PROTECTED]>: > > Hi all, > > I'm trying to migrate my JBoss v3.0.6 rules to the latest v4.0.0 > release. I could already resolve some issues but now I'm alrea

Re: [rules-users] adding process to an empty rule base

2007-07-27 Thread Kris Verlaenen
Yes, that is possible, but you should also add the (generated) package of your PackageBuilder. But this process is actually much simpler when using the ProcessBuilder exclusively. It should look something like this: PackageBuilder builder = new PackageBuilder(); // add your rules (if any) bui

Re: [rules-users] Accum question

2007-07-27 Thread Edson Tirelli
Sorry, it is not clear what you are trying to do. There are a few clear mistakes in your rule: 1. You can't use the $totV variable inside the accumulate, since $totV is the "result" of the accumulate. 2. You can't use variables bound inside accumulate outside of it, since accumulate is a sc

[rules-users] adding process to an empty rule base

2007-07-27 Thread hypnosat7
Is it possible to set the rule flow in my rule base before adding rule packages : ruleBase = RuleBaseFactory.newRuleBase(); org.drools.compiler.ProcessBuilder processBuilder = new ProcessBuilder(new PackageBuilder()); processBuilder.addProcessFromFile(ruleFlow); ruleBase.addProcess(processBuilder

[rules-users] Accum question

2007-07-27 Thread Mike D
Newbie question again... I'm trying to get a count of V lines if I have an X. If more than 1 V line, I pass... Obviously I can't have $totV on LHS, but you get my drift. What is the correct syntax for this one? I've been digging in the docs on accum, but can't find anything that fits what I'

[rules-users] NullPointerException in a simple test -- a Drools bug?

2007-07-27 Thread Christian Spurk
Hi all, I'm trying to migrate my JBoss v3.0.6 rules to the latest v4.0.0 release. I could already resolve some issues but now I'm already stuck for hours with a NullPointerException that I can't get rid of. I broke the problem down to a relatively small set of test files that I'd like to show

Re: [rules-users] Using rules with database scenario

2007-07-27 Thread hypnosat7
Did you find any ideas to deal with a large data base system ? Thanks Joe Chuby wrote: > > Thanks all for replying. > > We currently already have a layer of service (DAO) to retrieve data from > the database. We were thinking along the line you suggested there, but > somehow, we have the impr