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
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
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.
_
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 =
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.
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
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
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
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
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
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
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
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.
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.
__
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
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.
_
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
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'
--
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
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
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 )
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
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
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
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
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
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
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
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 ..
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
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:/
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
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
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
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
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.
___
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
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
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 =
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_
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
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
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
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
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
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
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-
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
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
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)
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.
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
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.
__
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.
___
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
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
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
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
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
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
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
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
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.
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/
64 matches
Mail list logo