Re: [rules-users] Large number of rules in Drools

2012-01-09 Thread Wolfgang Laun
Salience is just one way to force the evaluation of a condition before others. In fact, using salience throughout is just a way of re-creating a sequence of plain old if statements using a rules engine. I'm not going to waste my time and yours by elaborating on possible alternatives unless you com

Re: [rules-users] API's used for loading process in Eclipse

2012-01-09 Thread Manohar Kokkula
Esteban, Sorry for the delay, Yes, I compiled binary package in Guvnor, I am getting same Exceptions if I keep kbase.getProcess(): java.lang.NullPointerException     at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1090)     at org.drools.impl.StatefulKnowledgeS

[rules-users] Where could I get drools binary or source versioning 5.3.2.final?

2012-01-09 Thread Miles Wen
Hello, I submitted some issues to the issue tracker and browsed the issue tracker site. Found that there is a bug fix version for drools 5.3 final which named '5.3.2.final'. But I can't find where to download it.I searched for the droolsjbpm/drools github repos too, but still couldn't find. So if s

Re: [rules-users] Large number of rules in Drools

2012-01-09 Thread Davide Sottara
What Wolfgang was hinting at (assuming I understood correctly the thread of the discussion) is the difference between a set of rules like this: ... rule "n-th test" when $b : Bean( field == "x_n" ) then $b.setSomething( "y_n" ) end ... and rule-base like this: declare Holder selector

Re: [rules-users] Large number of rules in Drools

2012-01-09 Thread Shweta1986
I am not sure I understand that. What is the other option for this case. Why would simple rules not work for 20 K rules. Am I missing something. I cannot use database to store my rules. Drools also gives me salience which I need for my usecase. On Thu, Jan 5, 2012 at 11:29 PM, laune [via Drools] <

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread kavitha sethu
Thanks for the reply Mike & Esteban Aliverti. Using the webdav i was able to see the xml format of the rule through http://localhost:8081/guvnor/org.drools.guvnor.Guvnor/webdav/packages/edu.arizona/Lowers.brl. Can anyone provide me simple example of how to pass this URL to Grails Application Or an

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread Michael Anstis
Guvnor uses JCR (Jackrabbit or Modeshape). JCR can be configured to store it's binary data in a database. The configuration you make to Guvnor to use a database configures JCR. The resulting tables are of JCRs requirements and needs. As you have discovered JCR has no knowledge of "rules". You c

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread Esteban Aliverti
Guvnor relies on JCR to persist its data. Maybe there is a way to configure Jackrabbit (the JCR implementation that Guvnor uses by default), but I don't know. Webdav is another way to access the assets inside guvnor. Using a webdav browser (I think Internet Explorer is one. Another one is Nautilus)

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread kavita
Thanks for the reply. Can you tel me what is webdav? Also, is there any way that i can change format of JCR? Because right now, i see a table called as versioning_pm_refs under my guvnor database which has some kind of data something like this in the field node_id. When i tried adding a new rule, i

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread Esteban Aliverti
Even if you have configured a database to store your rules, JCR is using its internal format to store them. Not sure if you will be able to see them in any readable way. Did you try using webdav? Best Regards, Esteban Aliverti - Developer @ http://www.plu

[rules-users] Fresh Guvnor Install throws ClassNotFoundException

2012-01-09 Thread Mike Key
Hi all, I have installed Guvnor 5.3.0-Final on a fresh Tomcat 7.0.12. I am able to import existing rules I have, however when I try to upload my fact model I get an error in the localhost log file: SEVERE: Servlet.service() for servlet [AssetFileServlet] in context with path [/guvnor-5.3.0.Final

Re: [rules-users] does "dialect" really have an effect?

2012-01-09 Thread Mark Proctor
"dialect" is for areas explicitely marked with "eval" and for the consequence. Over time we have improved the capabilities of the parser and thus the pattern language, so that much more can be done without the need of using an eval, the stuff outside of the eval is not related to the "dialect"

[rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread kavita
Hi, I want to write the rules from drools to my mysql database. Using Repository configuration, i have configured my drools guvnor to write to mysql database. But, i am not seeing any tables which has rules in a readable format? Can anyone tel me which table and field to look for? Am a beginner t

Re: [rules-users] does "dialect" really have an effect?

2012-01-09 Thread ronalbury
Also - I just confirmed that getFoo1AsBoolean() returns null. I appreciate that as part of Drools null protection I don't get an error on that ... however, I am curious why the rest of the expression (the right hand side of the &&) is even evaluated. -- View this message in context: http://drool

[rules-users] does "dialect" really have an effect?

2012-01-09 Thread ronalbury
Drools 5.3 Given the following rule: rule "EasyApp Family Term Rider Max Value" dialect "java" #ruleflow-group "values-group" when $ea : EasyApp( getFoo1AsBoolean()==true && (getFoo2AsInt() > 25000

Re: [rules-users] Template Key in DSL

2012-01-09 Thread FrankVhh
Hi, Sorry to have kept you waiting. If you use plain DRL, you have 1 source of information. If you use DSL, you add an extra source of information by inserting the data in it. Adding DSL on top of that, adds a third source of information in the form of a vocabulary. In theory, the more disperse

Re: [rules-users] Instantiate fact class declared only in drl

2012-01-09 Thread Wolfgang Laun
Yeah, I'm aware of that. Still, I find it easier, even for a unit test, to write a DRL snippet rule "initTest" when then SomeFact sf = ... insert( sf ); end and add this in the setup, possibly even compiled from a java.lang.String. YMMV. -W 2012/1/9 Esteban Aliverti > There is a full

Re: [rules-users] Instantiate fact class declared only in drl

2012-01-09 Thread MarcoMojana
Thanks Esteban: this is exactly what I was looking for! -- MM Esteban wrote > > There is a full api that let you instantiate and manipulate declared types > in Java code: > http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-expert-docs/html_single/index.html#d0e3750 > -- View this messa

Re: [rules-users] Instantiate fact class declared only in drl

2012-01-09 Thread Esteban Aliverti
There is a full api that let you instantiate and manipulate declared types in Java code: http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-expert-docs/html_single/index.html#d0e3750 Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.co

Re: [rules-users] Instantiate fact class declared only in drl

2012-01-09 Thread MarcoMojana
Ok laune, but I would like to create this objects inside a junit test (so in a method defined in a *.java file), not from the drl itself. Were you suggesting a workaround? -- MM laune wrote > > I've found that creating objects and facts from DRL-declared classes is > easily done in DRL, in RHS

Re: [rules-users] Instantiate fact class declared only in drl

2012-01-09 Thread Wolfgang Laun
I've found that creating objects and facts from DRL-declared classes is easily done in DRL, in RHS code. -W On 9 January 2012 16:06, MarcoMojana wrote: > Hi, > I have declared a fact in a drl file as follows: > > package a.b.c > declare MyFact >vehicle : Vehicle > end > > The correspondi

[rules-users] Instantiate fact class declared only in drl

2012-01-09 Thread MarcoMojana
Hi, I have declared a fact in a drl file as follows: package a.b.c declare MyFact vehicle : Vehicle end The corresponding class file doesn't exists: it is created on the fly by drools at runtime. The class name should be a.b.c.MyFact, but the classloader cannot find it by using: Class c =

Re: [rules-users] API's used for loading process in Eclipse

2012-01-09 Thread Esteban Aliverti
Have you compiled your package in Guvnor? What is the result of kbase.getProcesses() ? Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2012/1/9 Manohar Kokkula > Conten in ProcessChangeSet.

Re: [rules-users] API's used for loading process in Eclipse

2012-01-09 Thread Manohar Kokkula
Conten in ProcessChangeSet.xml:    xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'    xs:schemaLocation='http://drools.org/drools-5.0/change-set /home/manohar/Desktop/ChangeSet/ProcessExample-xsd/change-set-1.0.0.xsd' >        I downloaded change-set-1.0.0.xsd and kept in the folder

[rules-users] Unable to do Guvnor Authentiation with MySQL

2012-01-09 Thread Sumeet Karawal
Hi All, I am trying to enable authentication in Guvnor using MySQL. I am using MySQL 5.1, Guvnor 5.2 and JBoss AS 5.0.4 I searched over a lot of docs and tried to do as mentioned below : I have created a GuvnorDB in MySQL with two tables create table Principals(principal_id VARCHAR(6

Re: [rules-users] API's used for loading process in Eclipse

2012-01-09 Thread Esteban Aliverti
What is the content of com/simple/ProcessChangeSet.xml? Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2012/1/9 Manohar Kokkula > Hi > > I am using Drool-5.2.0 final, Guvnor 5.2.0 final an

[rules-users] API's used for loading process in Eclipse

2012-01-09 Thread Manohar Kokkula
Hi I am using Drool-5.2.0 final, Guvnor 5.2.0 final and designer-2.0-jboss.war in Drools-Guvnor.In Designer, I created simple process with start node, one task node, and end node. I made Task type of task node as "Script". I entered simple java code as System.out.print("Hi "); in the Script option

Re: [rules-users] xls decisiontable -> unable to resolve method using strict-mode

2012-01-09 Thread Olle Martensson
Thanks for your answer. I have now tried to load the XLS without the KnowledgeAgent(see createKnowledgeBase() below). This time I got class loading problems( see stack trace below). This only happens when I load a XLS decision table, If I load a DRL rules file it runs fine without classloading i

Re: [rules-users] FactType returns null when creating a java client on Eclipse invoking a rule in Guvnor

2012-01-09 Thread Andre Fonseca
hi Michael, My environment is like below droools expert 5.3.0 final guvnor 5.3.0 final - guvnor-5.3.0.Final-tomcat-6.0.war Eclipse Helios - JBoss Drools Workbench 4.0.7 plugin I am not using authentication in guvnor, using guest user Actually I think I resolved the issue! I think I was

Re: [rules-users] xls decisiontable -> unable to resolve method using strict-mode

2012-01-09 Thread Michael Anstis
Have you tried load the XLS into a KnowledgeBase without using a KnowledgeAgent? Trying to narrow down where the issue might be will help (everyone) tremendously. On 5 January 2012 16:40, ollem wrote: > Hello! > > I'm using a knowledgeagent to point out a changeset XML which contains the > foll

Re: [rules-users] FactType returns null when creating a java client on Eclipse invoking a rule in Guvnor

2012-01-09 Thread Michael Anstis
What version of Drools Expert and Guvnor are you using? On 9 January 2012 00:47, kachaps4u wrote: > Exactly my error too!!! I too followed their documentation.. some one had > to > find it. My project has ESB in it too.. So I went to the next step in > running the uri from an ESB and it was succ