Re: [rules-users] Templating without usages of Excel or CSV?

2009-10-22 Thread Wolfgang Laun
Well, I saw that, and I'd been thinking of that feature. But it might be that Leif doesn't need to produce a series of similar rules from a template. Given that Customers are distinguished by a set of parameters that represent values that would normally be literals in rules, he might write his rul

[rules-users] Drools Flow JPA persistence error while Connecting to MySql Database.

2009-10-22 Thread Pardeep . Ruhil
Hi, I am trying to run the project given at http://blog.athico.com/2009/09/drools-flow-variable-persistence.html. I am successfully able to run the same in default H2 database, but when I am trying to run the project, taking Mysql database for persistence. I am not able to run the demo project a

Re: [rules-users] [droolsflow] Code-based constraints for EventWait nodes - is this possible?

2009-10-22 Thread Kris Verlaenen
No, the constraint of an EventWait node (or the State node in Drools 5.1) can only be rule-based. The reason for this is that the rule engine knows when to re-evaluates rules (based on the evailable input). If you would use a code-based constraint, the engine would have no idea when this code con

Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss

2009-10-22 Thread Kris Verlaenen
When you uploaded your sample process to Guvnor, did you add it to the "default" package (notice that the name should really be "default", and not "defaultPackage", which is created in Guvnor by default)? And after adding the process to the package, did you build the package on Guvnor? The NPE se

Re: [rules-users] [droolsflow] JPAKnowledgeService - how do you reload a Session with Processes?

2009-10-22 Thread Kris Verlaenen
The getProcessInstances() method returns all process instances that are currently loaded into the engine. When using persistence, we deliberately made that method to NOT fetch all active process instances (as this could be thousands and that would impact performance). So if you use persistence, y

Re: [rules-users] [droolsflow] Multiple Instances

2009-10-22 Thread Kris Verlaenen
Could you send me a simple test project that shows this behaviour? As it's rather difficult to figure out what's going on without seeing the actual code ... Kris Quoting Anderson vasconcelos : > Hi everybody. > I Have a flow : [Start] -> [First_HumanTask] -> Split -> > [Second_HumanTask] > or [E

Re: [rules-users] New DSL question...Interpreting constants...

2009-10-22 Thread Matt Geis
Hi Macon, You can make some highly flexible DSL's by using regular expressions and DSL entry chaining. See the following for an example: http://blog.athico.com/2008/06/allowing-variable-masks-in-dsl-grammar.html * So the above rules could be partially rewritten as: rule "Monetary 1"

[rules-users] Collections of Collections

2009-10-22 Thread Ken Archer
There are certain domains where a collection of objects is itself a member of a different collection of objects (e.g. zips in counties in states, persons in cars at intersections). In these domains, it would be helpful to create LHS conditions on the individual members of the "subcollection".

Re: [rules-users] Templating without usages of Excel or CSV?

2009-10-22 Thread Bill Tarr
Have you looked into the drools-templates subproject?  There are database driven templates (thats what I ended out using), but I suspect since you don't want to use a Excel or a CSV, that will be too heavyweight for you. I haven't used the ObjectDataCompiler yet, but it seems to be what you ar

[rules-users] New DSL question...Interpreting constants...

2009-10-22 Thread Pegram, Macon
Given the following rules (contrived example): rule "Monetary 1" when Currency(typeID in (CurrencyConst.DOLLAR, CurrencyConst.EURO, CurrencyConst.YEN)) then insert(new Fact()); end rule "Monetary 2" when Currency(typeID in (C

[rules-users] Recommended permgen settings for Guvnor

2009-10-22 Thread Clint Brown
Hi, We're using Drools Guvnor 5.0.1 in a production environment, running on Oracle's OAS10g 10.1.3.3.0 application server. We're experiencing permgen issues, particularly when doing large imports of rules, archiving, or compilation of rules. We initially deployed to production with the follo

[rules-users] Templating without usages of Excel or CSV?

2009-10-22 Thread strug
hi! is there a way to use the templating feature just from within drools? without the use of excel or csv or java? i want to have a template-rule and put the placeholder values into two different packages: package customer A: - my-rule-template.drl - customer-a-data.drl package customer B:

Re: [rules-users] DSL questions....

2009-10-22 Thread Pegram, Macon
Lucas, Great! Thanks for the quick reply. Macon From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Lucas Amador Sent: Thursday, October 22, 2009 10:58 AM To: Rules Users List Subject: Re: [rules-users]

[rules-users] Guvnor Cache Error with Seam

2009-10-22 Thread Robert Morse
Not sure if this is a Seam or Drools issue, but Under Seam 2.2.0.GA, JBoss 5.1.0.GA, and Drools 5.0.1.GA and Guvnor, changes to rules within Guvnor followed by a rule build within Guvnor doesn't seem to be reflected back to Seam or the associated cache directory. Under Seam, I've defin

Re: [rules-users] DSL questions....

2009-10-22 Thread Lucas Amador
Hi Macon, you can write all on one statement, but must be separated by comma [when]User is eligible for “{testCD}”=not MyFeature(testCD == “{testCD}”) , $eligible : FeatureEligible(testCD = “{testCD}”) and you will not get any overhead at runtime because all the interpretation happens at c

[rules-users] DSL questions....

2009-10-22 Thread Pegram, Macon
All, Given the following rule: rule "Add ABC123 Feature" when not MyFeature(testCD == "ABC123") UserRequest(someValue == "ABC123_FEATURE") $eligible : FeatureEligible(testCD == "ABC123") then insert(new MyFeature($eligible));

[rules-users] [droolsflow] Code-based constraints for EventWait nodes - is this possible?

2009-10-22 Thread Alan . Gairey
Can the constraint for an EventWait node in a flow be code-based (rather than rule-based)? The Eclipse plug-in (v 5.0.1) doesn't allow this to be specified, unlike say for a Split node, although the relevant XML can of course be edited. Trying to load such a process flow results in a NullPointer

Re: [rules-users] drools engine not working

2009-10-22 Thread Hemanth kumar
hi, Thanx for your reply.Im sending my test project. http://www.nabble.com/file/p26006235/Test%2Brule.zip Test+rule.zip description: In the mainjava class i was loading facts and calling runStatelessRules() of rule runner class. Im also seding the tomcat console of the output generated.

Re: [rules-users] drools engine not working

2009-10-22 Thread Hemanth kumar
http://www.nabble.com/file/p26006209/Test%2Brule.zip Test+rule.zip description: In the mainjava class i was loading facts and calling runStatelessRules() of rule runner class. Im also seding the tomcat console of the output generated. Hemanth -- View this message in context: http://www.na

Re: [rules-users] Drools engine not working

2009-10-22 Thread Leonardo Gomes
Hi Hemanth, Assuming that you've already tried debugging it... could you share your Fact definition and test rule with us? The jars are correct. Leo. On Thu, Oct 22, 2009 at 7:06 AM, Hemanth kumar wrote: > > hi, > Im working on Drools project.here is my project scenario. > > front end : Adobe