Re: [rules-users] removing all packages

2007-08-31 Thread hypnosat7
ckage(pkg); But my behavior's rule flow is changing !! hypnosat7 wrote: > > Hi, > > How can I remove all the packages from a rule base without creating a > new rulebase ? > -- View this message in context: http://www.nabble.com/removing-all-packages-tf4359507.html#a1

[rules-users] mvel bug ??

2007-08-31 Thread hypnosat7
Hi, I have a variable declaration as bellow : >list:Variable() from ruleApp.getVariable("variableName") and this is the result : Exception in thread "AWT-EventQueue-0" org.mvel.CompileException: cannot invoke method at org.mvel.optimizers.impl.refl.MethodAccessor.getValue(MethodAcces

[rules-users] removing all packages

2007-08-31 Thread hypnosat7
Hi, How can I remove all the packages from a rule base without creating a new rulebase ? -- View this message in context: http://www.nabble.com/removing-all-packages-tf4359507.html#a12424424 Sent from the drools - user mailing list archive at Nabble.com. _

Re: [rules-users] add process only -> bug ?

2007-08-31 Thread hypnosat7
That still not work with the latest version (4.0.1) any help pls:,( hypnosat7 wrote: > > hi, > > I try to add a ruleflow to my rule base : > builder.addRuleFlow(RULE_FLOW); > Package pkg =

[rules-users] package merging

2007-08-30 Thread hypnosat7
Hi, in the documentation (7.1.4.2. Package) it seems possible to merge package in the rule base, how ca I do this. (Drools 4.0.1 SNAPSHOT) -- View this message in context: http://www.nabble.com/package-merging-tf4355086.html#a12409940 Sent from the drools - user mailing list archive at Nabble.

Re: [rules-users] function call

2007-08-29 Thread hypnosat7
end Edson Tirelli-3 wrote: > >I believe this problem is already fixed in trunk. You can download > latest > build from here: > > http://cruisecontrol.jboss.com/cc/artifacts/jboss-rules > > []s > Edson > > 2007/8/29, hypnosat7 <[EMAIL PR

Re: [rules-users] function call

2007-08-29 Thread hypnosat7
println(drools.getRule().getDialect()); System.out.println("ok"+func()); end the package still invalid : * (1,6) unable to resolve method using strict-mode: java.lang.Object.func(...) * (1,6) unable to resolve method using strict-mode: java.lang.Object.func(...) hypnosat

[rules-users] function call

2007-08-29 Thread hypnosat7
Hi, I have a simple rule : function String isTrue() { return "true"; } rule "new rule" dialect "mvel" when eval(true) then System.out.println("passe"+isTrue()); end But it seems impossible to call function's : org.mvel.PropertyAccessEx

[rules-users] facts comparison

2007-08-28 Thread hypnosat7
Hi, I need to compare 2 facts for example : $p1:Person(age==30) $p2:Person(age==40) $p1==$p2 can I do this comparison directly without usinfg the eval ? thanks -- View this message in context: http://www.nabble.com/facts-comparison-tf4341918.html#a12368537 Sent from the drools - user mailing

Re: [rules-users] date-effective

2007-08-27 Thread hypnosat7
ldContext.java:119) at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:415) at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:283) at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:160) any help please hypnosat7 wrote: > > I put in one o

[rules-users] add process only -> bug ?

2007-08-27 Thread hypnosat7
hi, I try to add a ruleflow to my rule base : builder.addRuleFlow(RULE_FLOW); Package pkg = builder.getPackage(); ruleBase.addPackage(builder.getPackage()); But !!: java.lang.NullPointerException at org.drools.comp

Re: [rules-users] Working Memory View

2007-08-23 Thread hypnosat7
And for the Audit View ?? Mark Proctor wrote: > > StatelessSession does not implement or extending Working Memory, it > intead has it as a member variable. So you need to select that member > variable for those views to work. > > Mark > hypnosat7 wrote: >> H

[rules-users] global Service service

2007-08-23 Thread hypnosat7
Hi, I'm using Drools 4.0.1 snapshot but the Global Data View seems not work : this is my rule : global Service service global Parking parking rule "gestion file d'attente" when v:Vehicule( age <= 3 ) from service.getVehicules() then parking.

[rules-users] Working Memory View

2007-08-22 Thread hypnosat7
Hi, Why the Working Memory and the agenda Views didn't work with a StatelessSession ? Thanks -- View this message in context: http://www.nabble.com/Working-Memory-View-tf4312013.html#a12276049 Sent from the drools - user mailing list archive at Nabble.com. __

[rules-users] error in the manual ?

2007-08-22 Thread hypnosat7
Hi, I see on : file:///C:/Utils/Drools%204/drools-4.0.0-bin/documentation/manual/html/index.html in the sequential mode : "Sequential mode can only be used with a StatefulSession and is off by default. ..." Is it statefulSession or stateless ? -- View this message in context: http://www.nab

[rules-users] statelessSession and rule flow

2007-08-22 Thread hypnosat7
Hi, Is there any way to use rule flows with a statelessSession ? Thanks -- View this message in context: http://www.nabble.com/statelessSession-and-rule-flow-tf4310262.html#a12270501 Sent from the drools - user mailing list archive at Nabble.com. _

[rules-users] Realtime audit view

2007-08-17 Thread hypnosat7
Hi, What is the realtime audit view ? -- View this message in context: http://www.nabble.com/Realtime-audit-view-tf4286417.html#a12201671 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@list

[rules-users] find the error line number in a rule

2007-08-15 Thread hypnosat7
Hi, I use a package builder to build rule packages loaded from a DB. Those rules are written in a dsl so I use also a dsl file. But I'm looking for a simply way to return the line number if there is a parsing error. In fact I need something like DroolsError.getLine(). how can I do this Thank'

[rules-users] find the error line number in a rule

2007-08-15 Thread hypnosat7
-- View this message in context: http://www.nabble.com/find-the-error-line-number-in-a-rule-tf4273166.html#a12162223 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://list

[rules-users] rule validation

2007-08-14 Thread hypnosat7
Hi, I have some rules written in a dsl in a data base and I need to validate those rule so I used a PackageBuilder instance and a PackageBuilderErrors but it's a bit akward to manage with the subclasses of DroolsError. What I need is to get the line number of the error in my drl file (the Drool

[rules-users] dsl mapping for and/or

2007-08-14 Thread hypnosat7
hi is it possible to have a dsl providing users to write somthing like : bool1 AND bool2 OR (bool4 AND bool5) I tried to use eval and the mapping bellow : TELS QUE {v1} ET ({v2} OU {v3}) --> eval({v1} && ({v2} || {v3})); In my drl I have this condition :TELS QUE EA001 ET ( N OU F )

Re: [rules-users] DSL editor

2007-08-14 Thread hypnosat7
hi, I have the same question concerning the "Object" in the dsl editor. Thanks megoy1 wrote: > > Did you ever get an answer to this? I was thinking the same thing. > > > cmathrusse wrote: >> >> I'm using JBoss Rules 4.0MR2. I've installed the Eclipse IDE as well and >> begining to work wit

Re: [rules-users] expander mappings empty !

2007-08-13 Thread hypnosat7
builder will do all that for you if you just use > builder.addPackageFromDrl(drlReader, dslReader); > > Kris > > - Original Message - > From: "hypnosat7" <[EMAIL PROTECTED]> > To: > Sent: Monday, August 13, 2007 12:53 PM > Subject: Re: [r

Re: [rules-users] expander mappings empty !

2007-08-13 Thread hypnosat7
on to this ? thanks hypnosat7 wrote: > > > In fact I used the dsl Reader before to build a DefaultDslMapping. So the > problem is fixed > > > hypnosat7 wrote: >> >> Hi, >> I have an error when I try to buil a package using a dsl Reader : >> [EMA

Re: [rules-users] expander mappings empty !

2007-08-13 Thread hypnosat7
In fact I used the dsl Reader before to build a DefaultDslMapping. So the problem is fixed hypnosat7 wrote: > > Hi, > I have an error when I try to buil a package using a dsl Reader : > [EMAIL PROTECTED],1]: unknown:16:1 Unexpected > token 'une' > > I try to d

[rules-users] expander mappings empty !

2007-08-13 Thread hypnosat7
Hi, I have an error when I try to buil a package using a dsl Reader : [EMAIL PROTECTED],1]: unknown:16:1 Unexpected token 'une' I try to debug it with eclipse and I find no mappings in the variable "expander" final String expanded = expander.expand( source ); I'ts in the method DrlParser.pars

[rules-users] getGlobal

2007-08-13 Thread hypnosat7
Hi, Is it important to use getGlobal to get the global variables ? The global variable used in the rule is a reference so why we need getGlobal methode ? -- View this message in context: http://www.nabble.com/getGlobal-tf4259631.html#a12122048 Sent from the drools - user mailing list archiv

[rules-users] dialect meaning

2007-08-10 Thread hypnosat7
Hi, when the dialect for a package config is java, that's mean that in the rule LHS we can't write something like this : p:Person(age > 18) because this is not supported by java, am I right ? In fact my problem is the dialect concept, I don't understand this :( -- View this message in con

Re: [rules-users] bug or feature not yet implemented

2007-08-10 Thread hypnosat7
But my rule is an emty one : #list any import classes here. import java.util.List; import java.util.Date; #declare any global variables here rule "ruleDsl" when une date then end And in my dsl file I have : [condition][]une date=Date() And I have an expanderException ..

[rules-users] error using a dsl

2007-08-10 Thread hypnosat7
hi, When I used a dsl file with an empty rule I have this : MCO/Rule_regle_DSL_0.java (8:265) : Syntax error, insert "AssignmentOperator Expression" to complete Expression MCO/Rule_regle_DSL_0.java (8:265) : Syntax error, insert ";" to complete BlockStatements MCO/Rule_reg

[rules-users] global List unparsed !

2007-08-07 Thread hypnosat7
Hi, How can I declare a java.util.List global type ? If I tape this : global List myGlobal I have this error : org.drools.rule.InvalidRulePackage: [10,11]: unknown:10:11 mismatched token '[EMAIL PROTECTED],185:185='<',<78>,10:11]' expecting set null -- View this message in context: http:/

[rules-users] problems using the from

2007-08-07 Thread hypnosat7
Hi, This is my rule : #declare any global variables here global MockServiceRepository service rule "Your First Rule" when Variable($list : values ) from service.findVariableByName("njdn","dedkm") r : Rum(diagnostic memberOf

[rules-users] RuleFlow process has no id !?

2007-08-03 Thread hypnosat7
Hi, I draw a rule flow with only 2 ruleFlowGroup, I set the process id in the properties view but when I tried to check my rule flow I had this : ruleFlow process has no id this is my ruleFlowTest.rf file : 2 ruleSet1 2 RuleSet1

[rules-users] Update error: handle not found for object

2007-08-02 Thread hypnosat7
hi I have an exception after using an update This is my rule : package packageDrlTest #list any import classes here. import java.lang.Integer; #declare any global variables here rule "incrementation" no-loop when unEntier : java.lang.Integer() then

Re: [rules-users] rule name regular expression

2007-08-02 Thread hypnosat7
27;a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\u00c0'..'\u00ff')* thanks Mark Proctor wrote: > > There is no regexp for this. Easiest thing to do is make a package with > a single rule i

[rules-users] rule name regular expression

2007-08-01 Thread hypnosat7
Hi, When can I find the regular expression to check the validity of a rule name ? thanks -- View this message in context: http://www.nabble.com/rule-name-regular-expression-tf4201280.html#a11949495 Sent from the drools - user mailing list archive at Nabble.com. ___

[rules-users] generating a DSLMapping

2007-08-01 Thread hypnosat7
Hi, Is there any methode to generate a DSLMapping from a dsl ? thanks -- View this message in context: http://www.nabble.com/generating-a-DSLMapping-tf4201160.html#a11949090 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-use

[rules-users] generating a DSLMapping

2007-08-01 Thread hypnosat7
Hi, Is there a methode to generate a DSLMapping from a dsl reader ? -- View this message in context: http://www.nabble.com/generating-a-DSLMapping-tf4200795.html#a11947983 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-us

[rules-users] parsing errors

2007-07-31 Thread hypnosat7
Hi, I'm trying to recover errors information on parsing errors but I don't know how to get a List from the DrlParser instance : Reader drlReader2 = new InputStreamReader(PackageValidator.class.getResourceAsStream(PACKAGE_DRL)); DrlParser drlParser = new DrlParser(); PackageDescr packageDescr =

[rules-users] fireAllRules fire an exception !

2007-07-30 Thread hypnosat7
Hi, I try to execute this code : session.startProcess(ruleFlowId); session.insert(fact); session.fireAllRules(); But I have a NullPointerEception : java.lang.NullPointerException at mipih.Rule_Correction_acte_0.consequence(Rule_Correction_

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

2007-07-27 Thread hypnosat7
getPackage(); ruleBase.addPackage(pkgRuleFlow); In the emptyPackage.drl file this no rules, but it seems to be impossible to have a rule base with only a rule flow. I hope I'm wrong :) hypnosat7 wrote: > > thanks, it works but now I have this : > Caused by: java.lang.NullPoi

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

2007-07-27 Thread hypnosat7
by having multiple versions of mvel in your > classpath. > > Kris > > - Original Message - > From: "hypnosat7" <[EMAIL PROTECTED]> > To: > Sent: Friday, July 27, 2007 5:30 PM > Subject: Re: [rules-users] adding process to an empty rule base > &g

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

2007-07-27 Thread hypnosat7
t; Package pkg = builder.getPackage(); // this includes all the rules and > processes > ruleBase.addPackage( pkg ); > > Kris > > - Original Message - > From: "hypnosat7" <[EMAIL PROTECTED]> > To: > Sent: Friday, July 27, 2007 3:59 PM > Subjec

[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

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

[rules-users] processBuilder constructor

2007-07-26 Thread hypnosat7
hi, Why the constructor take a package builder as argument : ProcessBuilder(PackageBuilder packageBuilder) isn't necessary to have rules in packageBuilder to add process to a rule base ? -- View this message in context: http://www.nabble.com/processBuilder-constructor-tf4151428.html#a11809817

[rules-users] or split

2007-07-25 Thread hypnosat7
Hi, When I set the split type to OR I have this exception : Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.drools.common.RuleFlowGroupNode cannot be cast to org.drools.spi.Activation What it could be -- View this message in context: http://www.nabble.com/or-split-

[rules-users] problems using rule flow

2007-07-23 Thread hypnosat7
When I use my rule flow with only one asserted fact it work very well, but when I assert more than one fact it goes wrong. I used the Audit View to fix the problem. My rule flow : Start -> ruleFlowGroup1 -> split -> ruleFlowGroup2

[rules-users] XOR split exception

2007-07-21 Thread hypnosat7
I have this exception java.lang.IllegalArgumentException : XOR split could not find at least one valid outgoing connection for split Split1 I checked my split outgoing conditions but there's nothing wrong Any help pls ? -- View this message in context: http://www.nabble.com/XOR-split-exception

[rules-users] org.drools.common.RuleFlowGroupNode

2007-07-19 Thread hypnosat7
When I fire my rules with a giving rule flow I have this exception : java.lang.ClassCastException: org.drools.common.RuleFlowGroupNode cannot be cast to org.drools.spi.Activation at org.drools.ruleflow.instance.impl.RuleFlowSplitInstanceImpl.trigger(RuleFlowSplitInstanceImpl.java:90)

[rules-users] Entreprise using Drools with success

2007-07-18 Thread hypnosat7
Is there any companies which used Drools successfully ? Tell us more about your experiences, I need it to make decision -- View this message in context: http://www.nabble.com/Entreprise-using-Drools-with-success-tf4101493.html#a11663657 Sent from the drools - user mailing list archive at Nabble.

Re: [rules-users] Version 4.0.0.MR4

2007-07-18 Thread hypnosat7
Is there any information for the version 4 ? Mark Proctor wrote: > > planned for the 16th. The engine is near enough frozen now, just waiting > on the IDE stufff to finish, hopefully any day now. > > Mark > hypnosat7 wrote: >> And for the 4.0.0 release ? >> t

[rules-users] "template" in drl file editor

2007-07-10 Thread hypnosat7
What's the use of the keyword "template" in the head section of a rule (.drl) ? thanks -- View this message in context: http://www.nabble.com/%22template%22-in-drl-file-editor-tf4054414.html#a11516574 Sent from the drools - user mailing list archive at Nabble.com. __

[rules-users] date-effective

2007-07-06 Thread hypnosat7
I put in one of my rules : date-effective "16-FEB-2007" But Drools 4 MR3 dosn't parse it in my project. Any help Thanks -- View this message in context: http://www.nabble.com/date-effective-tf4036244.html#a11466627 Sent from the drools - user mailing list archive at Nabble.com. ___

[rules-users] query in function

2007-07-05 Thread hypnosat7
Can we call a query in a function in the drl file Thanks -- View this message in context: http://www.nabble.com/query-in-function-tf4030626.html#a11449368 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list ru

[rules-users] data base scheme

2007-07-05 Thread hypnosat7
In the great article below : http://legacy.drools.codehaus.org/Loading+and+managing+rules+dynamically+from+a+database 1) Is the data base scheme suggested the best choice for the Drools 4, or is there any optimization to add ? 2) If it's the best practice, so how can we link this to the rule rep

[rules-users] rete changing !!

2007-07-04 Thread hypnosat7
What's the difference between the three expressions : (because I'm seeing the rete tree changing when I change my expression) : $ct : ControleTechnique(resultat == ControleTechnique.KO);Voiture(ct ==$ct) and $ct : ControleTechnique(resultat == ControleTechnique.KO) Voiture(ct ==$ct) and $ct

Re: [rules-users] Version 4.0.0.MR4

2007-07-02 Thread hypnosat7
f - this will hopefully be the last milestone > release before we ship a candidate release. > > Mark > hypnosat7 wrote: >> Can you pls tell us when the version 4 MR4 will be released ? >> I'm waiting for the feature JBRULES-350 : cli

[rules-users] Version 4.0.0.MR4

2007-07-02 Thread hypnosat7
Can you pls tell us when the version 4 MR4 will be released ? I'm waiting for the feature JBRULES-350 : client/server API for rule deployment and management -- View this message in context: http://www.nabble.com/Version-4.0.0.MR4-tf4011681.html#a11392410 Sent from the drools - user mailing list

Re: [rules-users] rules in a working memory

2007-06-28 Thread hypnosat7
use the stateless session. > > Mark > hypnosat7 wrote: >> hello, >> >> we know that a WeakHashMap keeps references of WorkingMemories in a rule >> base but allow them to be garbage collected. >> But when their be garbage collected ? >> >> Than

[rules-users] peering & Drools

2007-06-28 Thread hypnosat7
Is it possible to do peering with Drools engines ? I mean is it possible to share a unique rule base between multiple Drools engines (different JVM) -- View this message in context: http://www.nabble.com/peering---Drools-tf3993140.html#a11339186 Sent from the drools - user mailing list archive a

[rules-users] rules in a working memory

2007-06-27 Thread hypnosat7
hello, we know that a WeakHashMap keeps references of WorkingMemories in a rule base but allow them to be garbage collected. But when their be garbage collected ? Thanks -- View this message in context: http://www.nabble.com/rules-in-a-working-memory-tf3987800.html#a11322787 Sent from the droo

[rules-users] dependencies

2007-06-22 Thread hypnosat7
hi, pls where can I see dependencies ? Thanks sumedha rubasinghe-2 wrote: > > Hi, > You do not have jdt.jar in your class path. It comes with the dependency > list. If you cannot find it, you can download it from here > http://repo1.maven.org/maven2/org/eclipse/jdt/core/3.2.0.666/core-3.2.

[rules-users] use jbossrules-4.0.0.11754MR2-bin ??

2007-06-22 Thread hypnosat7
Hi I'm working with eclipse IDE, I copied the org.drools.eclipse_4.0.0.11754MR2 jar file to the eclipse plugins directory, It is important to copy the binaries (jbossrules-4.0.0.11754MR2-bin directory) ? and where can I copy it ? Thanks -- View this message in context: http://www.nabble.com/