Re: [rules-users] Why is a flat object recommended?

2009-08-14 Thread Greg Barton
I would hesitate using from for accessing nested structures for performance reasons. See the attached project: $ java -jar target/DroolsNestedTest-1.0.jar from.drl Time: 980ms BAR Duplicates: 58 FOO Duplicates: 38 $ java -jar target/DroolsNestedTest-1.0.jar reference.drl Time: 36ms BAR

Re: [rules-users] OSGI, classloading, and imports in KnowledgeBuilder

2009-08-14 Thread Lasse . Wallentin
Mark Proctor mproc...@codehaus.org wrote on 14-08-2009 03:13:42: We'd really like to improve out OSGi friendlyness. From getting Drools to work perfectly as an OSGi service, to getting our build system to publish all the necessary bundles. But we need people in the commnity to help us, you

Re: [rules-users] Why is a flat object recommended?

2009-08-14 Thread Libor Nenadál
Mark thank you for your reply! What you are saying is that the example Car ( engine.cylinderCount == 4 ) is wrong and correct is: $e: Engine ( cylinderCount == 4 ) Car ( engine == $e ) which is representation of real relations? I thought about the example I wrote here overnight and I realized

Re: [rules-users] Using multiple threads for parallel rule flow execution

2009-08-14 Thread Tobias Buchloh
Hi Edson, thank you very much for your answer. If it is LHS of the rules that is taking too long to execute, then you may try enabling the engine multi-thread evaluation option. Well, it is the LHS which we would like to speed up because we anticipate a few hundred rules in there and only a

Re: [rules-users] OSGI, classloading, and imports in KnowledgeBuilder

2009-08-14 Thread ekke
lasse.wallen...@apcc.com schrieb: Mark Proctor mproc...@codehaus.org wrote on 14-08-2009 03:13:42: We'd really like to improve out OSGi friendlyness. From getting Drools to work perfectly as an OSGi service, to getting our build system to publish all the necessary bundles. But we need

Re: [rules-users] Problem with JPA session persistence in Drools Flow (5.0.1)

2009-08-14 Thread Kris Verlaenen
We're planning to do a M1 near the end of the month, and a final a few weeks later. Kris Quoting SBalakrishnan sanjay.balakrish...@fnis.com: Thanks Kris Will download from the below link and check. Quick question, do you know when the official 5.1 release will be available ?

Re: [rules-users] not able to debug drools flow

2009-08-14 Thread Jakob Marovt
Hi, I`m experiencing the same problems as Vishal. I am using Eclipse 3.5 and newest Drools. I am only able to debug project as Java application, but when I want to debug it as Drools application all I get is this problem. I also tried disabling firewall and changing its settings but as it seems

[rules-users] Exception Handlers for RuleFlow are not described

2009-08-14 Thread Marc Dzaebel
You can add exception handlers to the field Exception Handlers of process nodes. There are several references in the Documentation but no example. Did someone succeed using this field? See

Re: [rules-users] Exception Handlers for RuleFlow are not described

2009-08-14 Thread Kris Verlaenen
You can probably find some basic examples in the junit tests: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/ProcessExceptionHandlerTest.java Kris Quoting Marc Dzaebel mdzae...@web.de: You can add exception handlers to the

[rules-users] build from svn - report

2009-08-14 Thread Clandes Tino
Hi, I am trying to build latest source from svn, in order to try new rulesflow features. I am following instructions provided in README.txt I have maven 2.0.9 and execute: mvn -Declipse -Ddocumentation clean install -DlocalEclipseDrop=C:/Users/agaton/tools It seems that it does not work with

[rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Vijay K Pandey
Hi, I am trying to get a very simple DSL working but all the time it gives the error of Unable to expand: If I take the DSL away everything runs fine, not sure whats going on. So what I did is strip away all other stuff and just added a plain simple DSL -- but still the same error

Re: [rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Premkumar Stephen
http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.htmlSection 4.10.2 2009/8/14 Vijay K Pandey vpan...@mdes.ms.gov Hi, I am trying to get a very simple DSL working but all the time it gives the error of *Unable to

Re: [rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Vijay K Pandey
Thanks, but I have gone through this before and I don't see any issue in the DRL DSL file I wrote. Also within the eclipse plug-in, Rete View comes up fine for the DRL but while running as java application, Unable to expand: error comes. From:

Re: [rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Premkumar Stephen
you need to change [consequence][]LOGGING=System.out.println(hello); to [then][]LOGGING=System.out.println(hello); Regards, Prem 2009/8/14 Vijay K Pandey vpan...@mdes.ms.gov Thanks, but I have gone through this before and I don’t see any issue in the DRL DSL file I wrote. Also within the

Re: [rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Edson Tirelli
Not true. [consequence] and [then] are synonyms, and [consequence] is the preferred way. I think the problem is the order in which you are loading the resources. Add the DSL before adding the DSLR. []s Edson 2009/8/14 Premkumar Stephen pre...@gmail.com you need to change

Re: [rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Vijay K Pandey
Suggestion (DSL first) by Edson works perfectly. Thanks a lot Edson!. Thanks Vijay From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli Sent: Friday, August 14, 2009 12:24 PM To: Rules Users List

Re: [rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Tihomir Surdilovic
Try adding the DSL before the DSLR: resource source='classpath:test/rules/testing.dsl' type='DSL' / resource source='classpath:test/rules/test.drl' type='DSLR' / Vijay K Pandey wrote: Hi, I am trying to get a very simple DSL working but all the time it gives the error of

Re: [rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Vijay K Pandey
Thanks Tihomir. Edson also suggested the same and it worked. Thanks -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Tihomir Surdilovic Sent: Friday, August 14, 2009 1:48 PM To: Rules Users List Subject: Re:

[rules-users] JPA process working in container?

2009-08-14 Thread Garrett Conaty
Hi there, Has anyone been successful with Drools 5.1 and persistent processes? I've been debugging for quite a while now and not sure if the code was meant to run in a container. I'm using Spring 2.5, Drools 5.1, and Hibernate 3.3 Specifically: In SingleSessionCommandService a) the

[rules-users] Drrols 5 Expert -- Sequential vs Inference

2009-08-14 Thread Vijay K Pandey
Hi, We have around 3500 business rules and rules are mainly look up value based or based on the associated data in the RDBMS. There are around 90% processes where we only need sequential rules check, the other 10% of processes requires the inference capability. My questions: a)

Re: [rules-users] Drrols 5 Expert -- Sequential vs Inference

2009-08-14 Thread Greg Barton
Answering this question in any meaningful way without more information is difficult. My first instinct is to wonder if the database calls really need to be done directly from the LHS of the rules, especially with this many of them. I hope you're able to cache the database queries. Anyway,